Module: wine Branch: master Commit: aa76490d0739342592a588c40ee43e9ba10f34bc URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa76490d0739342592a588c40e...
Author: Vincent Povirk vincent@codeweavers.com Date: Sat Apr 17 15:38:44 2010 -0500
gdiplus: Use ddb's instead of dib's to create texture brushes.
---
dlls/gdiplus/brush.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 8994b87..57db380 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -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; }