[10/14] gdiplus: limit fixme output
Evan Stade
estade at gmail.com
Tue Jul 24 19:19:09 CDT 2007
Hi,
this just limits a few functions' fixme output to a single line.
dlls/gdiplus/graphics.c | 10 ++++++++--
dlls/gdiplus/pen.c | 5 ++++-
2 files changed, 12 insertions(+), 3 deletions(-)
--
Evan Stade
-------------- next part --------------
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 GdipGetWorldTransfor
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(GpDashStyl
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");
--
1.4.1
More information about the wine-patches
mailing list