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

This commit is contained in:
Vincent Povirk 2010-04-17 15:38:44 -05:00 committed by Alexandre Julliard
parent 68ce9e925a
commit aa76490d07
1 changed files with 4 additions and 2 deletions

View File

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