From 0ef129492b510369238b2f1d54cd77a9ff32389b Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 23 Mar 2011 14:27:47 -0500 Subject: [PATCH] gdiplus: Initialize the ImageAttributes in GdipCreateTexture2I. We now use all the ImageAttributes fields. --- dlls/gdiplus/brush.c | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 88958a7..d6fb62d 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -940,14 +940,22 @@ GpStatus WINGDIPAPI GdipCreateTextureIAI(GpImage *image, GDIPCONST GpImageAttrib GpStatus WINGDIPAPI GdipCreateTexture2I(GpImage *image, GpWrapMode wrapmode, INT x, INT y, INT width, INT height, GpTexture **texture) { - GpImageAttributes imageattr; + GpImageAttributes *imageattr; + GpStatus stat; TRACE("%p %d %d %d %d %d %p\n", image, wrapmode, x, y, width, height, texture); - imageattr.wrap = wrapmode; + stat = GdipCreateImageAttributes(&imageattr); + + if (stat == Ok) + { + imageattr->wrap = wrapmode; - return GdipCreateTextureIA(image, &imageattr, x, y, width, height, texture); + stat = GdipCreateTextureIA(image, imageattr, x, y, width, height, texture); + } + + return stat; } GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type) -- 1.7.2.5