[Gdiplus 7/7] Implement GdipCreateTexture2I

Adam Petaccia adam at tpetaccia.com
Sun Aug 31 00:07:06 CDT 2008


---
 dlls/gdiplus/brush.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 57ff977..3fb34b0 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -544,9 +544,14 @@ GpStatus WINGDIPAPI GdipCreateTextureIAI(GpImage *image, GDIPCONST GpImageAttrib
 GpStatus WINGDIPAPI GdipCreateTexture2I(GpImage *image, GpWrapMode wrapmode,
         INT x, INT y, INT width, INT height, GpTexture **texture)
 {
-    FIXME("stub: %p %d %d %d %d %d %p", image, wrapmode, x, y, width, height, texture);
+    GpImageAttributes imageattr;
 
-    return NotImplemented;
+    TRACE("%p %d %d %d %d %d %p", image, wrapmode, x, y, width, height,
+            texture);
+
+    imageattr.wrap = wrapmode;
+
+    return GdipCreateTextureIA(image, &imageattr, x, y, width, height, texture);
 }
 
 GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type)
-- 
1.5.4.3




More information about the wine-patches mailing list