mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 22:47:19 +00:00
user32: Use InflateRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dc525e8c40
commit
9ed915083f
|
@ -360,18 +360,12 @@ static BOOL SCROLL_PtInRectEx( LPRECT lpRect, POINT pt, BOOL vertical )
|
|||
if (vertical)
|
||||
{
|
||||
scrollbarWidth = lpRect->right - lpRect->left;
|
||||
rect.left -= scrollbarWidth*8;
|
||||
rect.right += scrollbarWidth*8;
|
||||
rect.top -= scrollbarWidth*2;
|
||||
rect.bottom += scrollbarWidth*2;
|
||||
InflateRect(&rect, scrollbarWidth * 8, scrollbarWidth * 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
scrollbarWidth = lpRect->bottom - lpRect->top;
|
||||
rect.left -= scrollbarWidth*2;
|
||||
rect.right += scrollbarWidth*2;
|
||||
rect.top -= scrollbarWidth*8;
|
||||
rect.bottom += scrollbarWidth*8;
|
||||
InflateRect(&rect, scrollbarWidth * 2, scrollbarWidth * 8);
|
||||
}
|
||||
return PtInRect( &rect, pt );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue