Module: wine Branch: master Commit: b0acdb8389f9f52d89075d898d1ed342aa036dad URL: http://source.winehq.org/git/wine.git/?a=commit;h=b0acdb8389f9f52d89075d898d... Author: Evan Stade <estade(a)gmail.com> Date: Tue Jul 24 17:19:09 2007 -0700 gdiplus: Limit fixme output. --- dlls/gdiplus/graphics.c | 10 ++++++++-- dlls/gdiplus/pen.c | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index f024d7c..a29d3a1 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1200,20 +1200,26 @@ GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics *graphics, GraphicsState state) { + static int calls; + if(!graphics) return InvalidParameter; - FIXME("graphics state not implemented\n"); + if(!(calls++)) + FIXME("graphics state not implemented\n"); return NotImplemented; } GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state) { + static int calls; + if(!graphics || !state) return InvalidParameter; - FIXME("graphics state not implemented\n"); + if(!(calls++)) + FIXME("graphics state not implemented\n"); return NotImplemented; } diff --git a/dlls/gdiplus/pen.c b/dlls/gdiplus/pen.c index b088ac9..3026d52 100644 --- a/dlls/gdiplus/pen.c +++ b/dlls/gdiplus/pen.c @@ -29,6 +29,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(gdiplus); static DWORD gdip_to_gdi_dash(GpDashStyle dash) { + static int calls; + switch(dash){ case DashStyleSolid: return PS_SOLID; @@ -41,7 +43,8 @@ static DWORD gdip_to_gdi_dash(GpDashStyle dash) case DashStyleDashDotDot: return PS_DASHDOTDOT; case DashStyleCustom: - FIXME("DashStyleCustom not implemented\n"); + if(!(calls++)) + FIXME("DashStyleCustom not implemented\n"); return PS_SOLID; default: ERR("Not a member of GpDashStyle enumeration\n");