Commit 4266b154 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Initialize the ImageAttributes in GdipCreateTexture2I.

parent 42d1d9e9
...@@ -940,14 +940,22 @@ GpStatus WINGDIPAPI GdipCreateTextureIAI(GpImage *image, GDIPCONST GpImageAttrib ...@@ -940,14 +940,22 @@ GpStatus WINGDIPAPI GdipCreateTextureIAI(GpImage *image, GDIPCONST GpImageAttrib
GpStatus WINGDIPAPI GdipCreateTexture2I(GpImage *image, GpWrapMode wrapmode, GpStatus WINGDIPAPI GdipCreateTexture2I(GpImage *image, GpWrapMode wrapmode,
INT x, INT y, INT width, INT height, GpTexture **texture) 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, TRACE("%p %d %d %d %d %d %p\n", image, wrapmode, x, y, width, height,
texture); 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) GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment