[Gdiplus 6/7] Implement GdipCreateTexture2

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


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

diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 3a991d2..57ff977 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -410,10 +410,14 @@ GpStatus WINGDIPAPI GdipCreateTexture(GpImage *image, GpWrapMode wrapmode,
 GpStatus WINGDIPAPI GdipCreateTexture2(GpImage *image, GpWrapMode wrapmode,
         REAL x, REAL y, REAL width, REAL height, GpTexture **texture)
 {
-    FIXME("stub: %p %d %f %f %f %f %p\n", image, wrapmode,
+    GpImageAttributes attributes;
+
+    TRACE("%p %d %f %f %f %f %p\n", image, wrapmode,
             x, y, width, height, texture);
 
-    return NotImplemented;
+    attributes.wrap = wrapmode;
+    return GdipCreateTextureIA(image, &attributes, x, y, width, height,
+            texture);
 }
 
 /* FIXME: imageattr ignored */
-- 
1.5.4.3




More information about the wine-patches mailing list