gdiplus: Initialize the ImageAttributes in GdipCreateTexture2I.

This commit is contained in:
Vincent Povirk 2011-03-23 14:27:47 -05:00 committed by Alexandre Julliard
parent 42d1d9e9e0
commit 4266b154be
1 changed files with 11 additions and 3 deletions

View File

@ -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);
return GdipCreateTextureIA(image, &imageattr, x, y, width, height, texture);
if (stat == Ok)
{
imageattr->wrap = wrapmode;
stat = GdipCreateTextureIA(image, imageattr, x, y, width, height, texture);
}
return stat;
}
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush *brush, GpBrushType *type)