comctl32/tab: Simplify hottracked button painting
Nikolay Sivov
bunglehead at gmail.com
Wed Apr 8 11:22:32 CDT 2009
Actually this's a fix for previous patch:
http://source.winehq.org/git/wine.git/?a=commit;h=483083e30646cbbb73798864afa7cc32d277f69b
I didn't remember that same hottracking already used for toolbars.
No visual difference here but a single call instead of a pair.
Changelog:
- Simplify hottracked button painting
>From 50bdfb32a5ee871ccd5b194472ffc1c8791aec99 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed, 8 Apr 2009 11:39:08 -0400
Subject: Simplify hottracked button painting
---
dlls/comctl32/tab.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index 4eebd15..55a69fb 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -1483,10 +1483,7 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
InflateRect(&rTemp, 2, 2);
FillRect(hdc, &rTemp, hbr);
if (iItem == infoPtr->iHotTracked)
- {
- DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_SOFT|BF_TOPLEFT);
- DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT);
- }
+ DrawEdge(hdc, &rTemp, BDR_RAISEDINNER, BF_RECT);
}
else
FillRect(hdc, &rTemp, hbr);
--
1.5.6.5
More information about the wine-patches
mailing list