Nikolay Sivov : gdiplus: Added GdipScaleTextureTransform.
Alexandre Julliard
julliard at winehq.org
Fri Dec 5 07:43:00 CST 2008
Module: wine
Branch: master
Commit: 958e73aa69d7e2cb3d5aa8e57f563e9b06f282e2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=958e73aa69d7e2cb3d5aa8e57f563e9b06f282e2
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri Dec 5 10:37:21 2008 +0300
gdiplus: Added GdipScaleTextureTransform.
---
dlls/gdiplus/brush.c | 14 ++++++++++++++
dlls/gdiplus/gdiplus.spec | 2 +-
2 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 7fefd9f..a24f54e 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -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)
{
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 1b3f307..b3d2103 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -500,7 +500,7 @@
@ 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)
More information about the wine-cvs
mailing list