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;
|
||||
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;
|
||||
|
||||
PatBlt( hdc, r.left, r.top, 1, r.bottom - r.top, PATCOPY );
|
||||
|
|
Loading…
Reference in New Issue