gdiplus: Added GdipScaleTextureTransform.
authorNikolay Sivov <bunglehead@gmail.com>
Fri, 5 Dec 2008 07:37:21 +0000 (10:37 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 5 Dec 2008 12:01:00 +0000 (13:01 +0100)
dlls/gdiplus/brush.c
dlls/gdiplus/gdiplus.spec

index 7fefd9fdce254274f8484edbe25d7406cc9c45d9..a24f54ebe2fb57d741677ad03cceeba5c2932668 100644 (file)
@@ -954,6 +954,20 @@ GpStatus WINGDIPAPI GdipResetTextureTransform(GpTexture* brush)
     return GdipSetMatrixElements(brush->transform, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0);
 }
 
+/******************************************************************************
+ * GdipScaleTextureTransform [GDIPLUS.@]
+ */
+GpStatus WINGDIPAPI GdipScaleTextureTransform(GpTexture* brush,
+    REAL sx, REAL sy, GpMatrixOrder order)
+{
+    TRACE("(%p, %.2f, %.2f, %d)\n", brush, sx, sy, order);
+
+    if(!brush)
+        return InvalidParameter;
+
+    return GdipScaleMatrix(brush->transform, sx, sy, order);
+}
+
 GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient *brush,
     GDIPCONST REAL *blend, GDIPCONST REAL* positions, INT count)
 {
index 1b3f307f417823ef05056f79ca3fe85ff8d51bdb..b3d21039ea51fc9e5c675256b6a02771f37a8d25 100644 (file)
 @ stdcall GdipScaleMatrix(ptr long long long)
 @ stub GdipScalePathGradientTransform
 @ stub GdipScalePenTransform
-@ stub GdipScaleTextureTransform
+@ stdcall GdipScaleTextureTransform(ptr long long long)
 @ stdcall GdipScaleWorldTransform(ptr long long long)
 @ stdcall GdipSetAdjustableArrowCapFillState(ptr long)
 @ stdcall GdipSetAdjustableArrowCapHeight(ptr long)