Detlef Riekenberg : gdiplus: Implement GdipSetCustomLineCapWidthScale.

Alexandre Julliard julliard at winehq.org
Thu Apr 18 13:57:24 CDT 2013


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

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Wed Apr 17 22:41:41 2013 +0200

gdiplus: Implement GdipSetCustomLineCapWidthScale.

---

 dlls/gdiplus/customlinecap.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/dlls/gdiplus/customlinecap.c b/dlls/gdiplus/customlinecap.c
index 00c228b..597ac01 100644
--- a/dlls/gdiplus/customlinecap.c
+++ b/dlls/gdiplus/customlinecap.c
@@ -221,17 +221,16 @@ GpStatus WINGDIPAPI GdipSetCustomLineCapStrokeJoin(GpCustomLineCap* custom,
     return Ok;
 }
 
-GpStatus WINGDIPAPI GdipSetCustomLineCapWidthScale(GpCustomLineCap* custom,
-    REAL width)
+GpStatus WINGDIPAPI GdipSetCustomLineCapWidthScale(GpCustomLineCap* custom, REAL width)
 {
-    static int calls;
-
     TRACE("(%p,%0.2f)\n", custom, width);
 
-    if(!(calls++))
-        FIXME("not implemented\n");
+    if(!custom)
+        return InvalidParameter;
 
-    return NotImplemented;
+    custom->scale = width;
+
+    return Ok;
 }
 
 GpStatus WINGDIPAPI GdipGetCustomLineCapBaseCap(GpCustomLineCap *customCap, GpLineCap *baseCap)




More information about the wine-cvs mailing list