Adam Petaccia : gdiplus: Implement GdipCreateTexture2I.

Alexandre Julliard julliard at winehq.org
Tue Sep 2 08:33:18 CDT 2008


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

Author: Adam Petaccia <adam at tpetaccia.com>
Date:   Sun Aug 31 01:07:06 2008 -0400

gdiplus: Implement GdipCreateTexture2I.

---

 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)




More information about the wine-cvs mailing list