[PATCH 1/1] user32: Fix for regression Bug 20153

Wilfried Pasquazzo wilfried.pasquazzo at gmail.com
Sat Sep 26 10:43:06 CDT 2009


Hi there,

This is a fix for a regression revealed by my previous work on
Bug http://bugs.winehq.org/show_bug.cgi?id=175
which is described in
http://bugs.winehq.org/show_bug.cgi?id=20153.

When drawing Icons state-sensitive, the size of the icon was calculated but
ignored. Now it is passed
on to the drawing function.

Couldn't test it myself (don't have Autocad), but creator of that Bug Report
says this fixes the problem.

Best regards,


Wilfried Pasquazzo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090926/a45c9fa4/attachment-0001.htm>
-------------- next part --------------
From bb912db6bb6ddd95f34309a4a48c0dbb9860ea0f Mon Sep 17 00:00:00 2001
From: Wilfried Pasquazzo <wilfried.pasquazzo at gmail.com>
Date: Sat, 26 Sep 2009 16:52:15 +0000
Subject: [PATCH] Potential regression fix for Bug 20153

---
 dlls/user32/uitools.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/uitools.c b/dlls/user32/uitools.c
index 54dab13..698a233 100644
--- a/dlls/user32/uitools.c
+++ b/dlls/user32/uitools.c
@@ -1534,7 +1534,7 @@ static BOOL UITOOLS_DrawStateJam( HDC hdc, UINT opcode, DRAWSTATEPROC func, LPAR
             return DrawTextA(hdc, (LPSTR)lp, (INT)wp, rc, dtflags);
 
     case DST_ICON:
-        return DrawIcon(hdc, rc->left, rc->top, (HICON)lp);
+        return DrawIconEx(hdc, rc->left, rc->top, (HICON)lp, cx, cy, 0, NULL, DI_NORMAL);
 
     case DST_BITMAP:
         memdc = CreateCompatibleDC(hdc);
-- 
1.6.3.3


More information about the wine-patches mailing list