mirror of
https://github.com/reactos/wine.git
synced 2025-02-02 02:04:34 +00:00
comctl32: tab: Fix drawing of the icons.
This patch partially reverts aa57ad37. It's not correct. The top/left is added later on.
This commit is contained in:
parent
af1986d6cc
commit
5c9fbb828d
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user