[7/7] gdiplus: stub for GdipFlush

Nikolay Sivov bunglehead at gmail.com
Wed Jun 18 02:33:10 CDT 2008


Changelog:
    - Stub for GdipFlush

---
 dlls/gdiplus/gdiplus.spec |    2 +-
 dlls/gdiplus/graphics.c   |   13 +++++++++++++
 include/gdiplusenums.h    |    7 +++++++
 include/gdiplusflat.h     |    1 +
 include/gdiplusgpstubs.h  |    1 +
 5 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index ed02a77..23346fc 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -234,7 +234,7 @@
 @ stdcall GdipFindFirstImageItem(ptr ptr)
 @ stub GdipFindNextImageItem
 @ stub GdipFlattenPath
-@ stub GdipFlush
+@ stdcall GdipFlush(long)
 @ stdcall GdipFree(ptr)
 @ stub GdipGetAdjustableArrowCapFillState
 @ stub GdipGetAdjustableArrowCapHeight
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 45794f0..5716341 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -1957,6 +1957,19 @@ GpStatus WINGDIPAPI GdipFillRectanglesI(GpGraphics *graphics, GpBrush *brush, GD
     return ret;
 }
 
+GpStatus WINGDIPAPI GdipFlush(GpGraphics *graphics, GpFlushIntention intention)
+{
+    static int calls;
+
+    if(!graphics)
+        return InvalidParameter;
+
+    if(!(calls++))
+        FIXME("not implemented\n");
+
+    return NotImplemented;
+}
+
 /* FIXME: Compositing mode is not used anywhere except the getter/setter. */
 GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics *graphics,
     CompositingMode *mode)
diff --git a/include/gdiplusenums.h b/include/gdiplusenums.h
index 4e937c0..a27ed5e 100644
--- a/include/gdiplusenums.h
+++ b/include/gdiplusenums.h
@@ -298,6 +298,12 @@ enum CombineMode
     CombineModeComplement
 };
 
+enum FlushIntention
+{
+    FlushIntentionFlush = 0,
+    FlushIntentionSync  = 1
+};
+
 #ifndef __cplusplus
 
 typedef enum Unit Unit;
@@ -329,6 +335,7 @@ typedef enum HotkeyPrefix HotkeyPrefix;
 typedef enum PenAlignment GpPenAlignment;
 typedef enum ImageCodecFlags ImageCodecFlags;
 typedef enum CombineMode CombineMode;
+typedef enum FlushIntention FlushIntention;
 
 #endif /* end of c typedefs */
 
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index e4f5d62..58659fe 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -369,6 +369,7 @@ GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *, GpGraphics *, HRGN *);
 GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *);
 GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *);
 
+GpStatus WINGDIPAPI GdipFlush(GpGraphics*, GpFlushIntention);
 
 #ifdef __cplusplus
 }
diff --git a/include/gdiplusgpstubs.h b/include/gdiplusgpstubs.h
index 9f7d092..c5e676d 100644
--- a/include/gdiplusgpstubs.h
+++ b/include/gdiplusgpstubs.h
@@ -81,5 +81,6 @@ typedef MatrixOrder GpMatrixOrder;
 typedef Point GpPoint;
 typedef WrapMode GpWrapMode;
 typedef Color GpColor;
+typedef FlushIntention GpFlushIntention;
 
 #endif
-- 
1.4.4.4






More information about the wine-patches mailing list