Commit f620b663 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdiplus: Stub for GdipFlush.

parent d4ae6fa1
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
@ stdcall GdipFindFirstImageItem(ptr ptr) @ stdcall GdipFindFirstImageItem(ptr ptr)
@ stub GdipFindNextImageItem @ stub GdipFindNextImageItem
@ stub GdipFlattenPath @ stub GdipFlattenPath
@ stub GdipFlush @ stdcall GdipFlush(long)
@ stdcall GdipFree(ptr) @ stdcall GdipFree(ptr)
@ stub GdipGetAdjustableArrowCapFillState @ stub GdipGetAdjustableArrowCapFillState
@ stub GdipGetAdjustableArrowCapHeight @ stub GdipGetAdjustableArrowCapHeight
......
...@@ -1957,6 +1957,19 @@ GpStatus WINGDIPAPI GdipFillRectanglesI(GpGraphics *graphics, GpBrush *brush, GD ...@@ -1957,6 +1957,19 @@ GpStatus WINGDIPAPI GdipFillRectanglesI(GpGraphics *graphics, GpBrush *brush, GD
return ret; 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. */ /* FIXME: Compositing mode is not used anywhere except the getter/setter. */
GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics *graphics, GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics *graphics,
CompositingMode *mode) CompositingMode *mode)
......
...@@ -298,6 +298,12 @@ enum CombineMode ...@@ -298,6 +298,12 @@ enum CombineMode
CombineModeComplement CombineModeComplement
}; };
enum FlushIntention
{
FlushIntentionFlush = 0,
FlushIntentionSync = 1
};
#ifndef __cplusplus #ifndef __cplusplus
typedef enum Unit Unit; typedef enum Unit Unit;
...@@ -329,6 +335,7 @@ typedef enum HotkeyPrefix HotkeyPrefix; ...@@ -329,6 +335,7 @@ typedef enum HotkeyPrefix HotkeyPrefix;
typedef enum PenAlignment GpPenAlignment; typedef enum PenAlignment GpPenAlignment;
typedef enum ImageCodecFlags ImageCodecFlags; typedef enum ImageCodecFlags ImageCodecFlags;
typedef enum CombineMode CombineMode; typedef enum CombineMode CombineMode;
typedef enum FlushIntention FlushIntention;
#endif /* end of c typedefs */ #endif /* end of c typedefs */
......
...@@ -368,6 +368,7 @@ GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *, GpGraphics *, HRGN *); ...@@ -368,6 +368,7 @@ GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *, GpGraphics *, HRGN *);
GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *); GpStatus WINGDIPAPI GdipSetEmpty(GpRegion *);
GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *); GpStatus WINGDIPAPI GdipSetInfinite(GpRegion *);
GpStatus WINGDIPAPI GdipFlush(GpGraphics*, GpFlushIntention);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
...@@ -81,5 +81,6 @@ typedef MatrixOrder GpMatrixOrder; ...@@ -81,5 +81,6 @@ typedef MatrixOrder GpMatrixOrder;
typedef Point GpPoint; typedef Point GpPoint;
typedef WrapMode GpWrapMode; typedef WrapMode GpWrapMode;
typedef Color GpColor; typedef Color GpColor;
typedef FlushIntention GpFlushIntention;
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment