mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Draw only visible tabs.
This commit is contained in:
parent
bc3ad87998
commit
b58004d9ae
1 changed files with 5 additions and 1 deletions
|
@ -404,7 +404,11 @@ static BOOL TAB_InternalGetItemRect(
|
|||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
/* Check for visibility */
|
||||
if (lStyle & TCS_VERTICAL)
|
||||
return (itemRect->top < clientRect.bottom) && (itemRect->bottom > clientRect.top);
|
||||
else
|
||||
return (itemRect->left < clientRect.right) && (itemRect->right > clientRect.left);
|
||||
}
|
||||
|
||||
static inline BOOL
|
||||
|
|
Loading…
Reference in a new issue