[2/2] user32/uitools.c: DrawState: Fix for Icon drawing - fixes Bug 20153

Wilfried Pasquazzo wilfried.pasquazzo at gmail.com
Thu Oct 1 13:35:43 CDT 2009


See [1/2] For Description

Wilfried Pasquazzo
-------------- next part --------------
From c4bf0f6fde9ab3e1ab28825ea90b6927c40a9788 Mon Sep 17 00:00:00 2001
From: Wilfried Pasquazzo <wilfried.pasquazzo at gmail.com>
Date: Thu, 1 Oct 2009 20:24:29 +0000
Subject: [PATCH 2/2] Make DrawState use original Icon dimensions - fixes 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.4.4


More information about the wine-patches mailing list