Commit aa76490d authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Use ddb's instead of dib's to create texture brushes.

parent 68ce9e92
...@@ -794,7 +794,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, ...@@ -794,7 +794,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
GDIPCONST GpImageAttributes *imageattr, REAL x, REAL y, REAL width, GDIPCONST GpImageAttributes *imageattr, REAL x, REAL y, REAL width,
REAL height, GpTexture **texture) REAL height, GpTexture **texture)
{ {
HBITMAP hbm; HBITMAP hbm=NULL;
GpStatus status; GpStatus status;
GpImage *new_image=NULL; GpImage *new_image=NULL;
...@@ -815,7 +815,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, ...@@ -815,7 +815,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image,
if (status != Ok) if (status != Ok)
return status; return status;
hbm = ((GpBitmap*)new_image)->hbitmap; status = GdipCreateHBITMAPFromBitmap((GpBitmap*)new_image, &hbm, 0);
if(!hbm) if(!hbm)
{ {
status = GenericError; status = GenericError;
...@@ -861,6 +861,8 @@ exit: ...@@ -861,6 +861,8 @@ exit:
TRACE("<-- error %u\n", status); TRACE("<-- error %u\n", status);
} }
DeleteObject(hbm);
return status; return status;
} }
......
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