[PATCH 8/8] uxtheme: GetObject() already returns a DIB's absolute height.
Henri Verbeet
hverbeet at codeweavers.com
Mon Mar 1 05:39:58 CST 2010
---
dlls/uxtheme/msstyles.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/uxtheme/msstyles.c b/dlls/uxtheme/msstyles.c
index 896a294..0adb70d 100644
--- a/dlls/uxtheme/msstyles.c
+++ b/dlls/uxtheme/msstyles.c
@@ -1093,7 +1093,7 @@ static BOOL prepare_alpha (HBITMAP bmp, BOOL* hasAlpha)
*hasAlpha = TRUE;
p = dib.dsBm.bmBits;
- n = abs(dib.dsBmih.biHeight) * dib.dsBmih.biWidth;
+ n = dib.dsBmih.biHeight * dib.dsBmih.biWidth;
/* AlphaBlend() wants premultiplied alpha, so do that now */
while (n-- > 0)
{
--
1.6.4.4
More information about the wine-patches
mailing list