[PATCH 1/2] gdiplus: Implement GdipSetCustomLineCapWidthScale

Detlef Riekenberg wine.dev at web.de
Wed Apr 17 15:41:41 CDT 2013


Needed to get CPU Themperature a bit further.

--
By by ... Detlef
---
 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)
-- 
1.7.5.4




More information about the wine-patches mailing list