From b6afa7a743f8d5143e319687a4a1a30e322adbee Mon Sep 17 00:00:00 2001 From: Adam Petaccia Date: Sun, 31 Aug 2008 01:07:02 -0400 Subject: [PATCH] gdiplus: Implement GdipCreateTexture2. --- dlls/gdiplus/brush.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 3a991d230ec..57ff977e688 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 */