Nikolay Sivov : gdiplus: Stub for GdipFlush.

Alexandre Julliard julliard at winehq.org
Fri Jun 20 06:22:45 CDT 2008


Module: wine
Branch: master
Commit: f620b663a7dfc1f804b6c38a83d29e9cb14e6347
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f620b663a7dfc1f804b6c38a83d29e9cb14e6347

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Wed Jun 18 11:33:10 2008 +0400

gdiplus: 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 70864ba..3d01c16 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 5ce32b2..152b6da 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -368,6 +368,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




More information about the wine-cvs mailing list