mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 08:44:54 +00:00
user32: Use IsRectEmpty() 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
776eebe80b
commit
21e3de63de
@ -1483,7 +1483,7 @@ INT WINAPI FrameRect( HDC hdc, const RECT *rect, HBRUSH hbrush )
|
|||||||
HBRUSH prevBrush;
|
HBRUSH prevBrush;
|
||||||
RECT r = *rect;
|
RECT r = *rect;
|
||||||
|
|
||||||
if ( (r.right <= r.left) || (r.bottom <= r.top) ) return 0;
|
if (IsRectEmpty(&r)) return 0;
|
||||||
if (!(prevBrush = SelectObject( hdc, hbrush ))) return 0;
|
if (!(prevBrush = SelectObject( hdc, hbrush ))) return 0;
|
||||||
|
|
||||||
PatBlt( hdc, r.left, r.top, 1, r.bottom - r.top, PATCOPY );
|
PatBlt( hdc, r.left, r.top, 1, r.bottom - r.top, PATCOPY );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user