Module: wine Branch: master Commit: 5c9fbb828d979ce18b218ee37f4f6473027c0a62 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5c9fbb828d979ce18b218ee37f...
Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Tue May 6 00:14:37 2008 -0600
comctl32: tab: Fix drawing of the icons.
This patch partially reverts aa57ad37. It's not correct. The top/left is added later on.
---
dlls/comctl32/tab.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 4b1673a..62047e5 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -1715,12 +1715,12 @@ TAB_DrawItemInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect if(lStyle & TCS_VERTICAL) { center_offset_h = ((drawRect->bottom - drawRect->top) - (cy + infoPtr->uHItemPadding + (rcText.right - rcText.left))) / 2; - center_offset_v = (drawRect->left + (drawRect->right - drawRect->left) - cx) / 2; + center_offset_v = ((drawRect->right - drawRect->left) - cx) / 2; } else { center_offset_h = ((drawRect->right - drawRect->left) - (cx + infoPtr->uHItemPadding + (rcText.right - rcText.left))) / 2; - center_offset_v = (drawRect->top + (drawRect->bottom - drawRect->top) - cy) / 2; + center_offset_v = ((drawRect->bottom - drawRect->top) - cy) / 2; }
/* if an item is selected, the icon is shifted up instead of down */