Vincent Povirk : gdiplus: Stub GdipGetRenderingOrigin.

Alexandre Julliard julliard at winehq.org
Fri Jun 25 09:40:53 CDT 2010


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

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu Jun 24 12:09:26 2010 -0500

gdiplus: Stub GdipGetRenderingOrigin.

---

 dlls/gdiplus/gdiplus.spec |    2 +-
 dlls/gdiplus/graphics.c   |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 14e7fbf..a8f5b5f 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -383,7 +383,7 @@
 @ stub GdipGetRegionScans
 @ stdcall GdipGetRegionScansCount(ptr ptr ptr)
 @ stub GdipGetRegionScansI
-@ stub GdipGetRenderingOrigin
+@ stdcall GdipGetRenderingOrigin(ptr ptr ptr)
 @ stdcall GdipGetSmoothingMode(ptr ptr)
 @ stdcall GdipGetSolidFillColor(ptr ptr)
 @ stdcall GdipGetStringFormatAlign(ptr ptr)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index da3c15f..5fed017 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -4216,6 +4216,20 @@ GpStatus WINGDIPAPI GdipSetRenderingOrigin(GpGraphics *graphics, INT x, INT y)
     return NotImplemented;
 }
 
+GpStatus WINGDIPAPI GdipGetRenderingOrigin(GpGraphics *graphics, INT *x, INT *y)
+{
+    static int calls;
+
+    TRACE("(%p,%p,%p)\n", graphics, x, y);
+
+    if (!(calls++))
+        FIXME("not implemented\n");
+
+    *x = *y = 0;
+
+    return NotImplemented;
+}
+
 GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mode)
 {
     TRACE("(%p, %d)\n", graphics, mode);




More information about the wine-cvs mailing list