winex11.drv: Use IsRectEmpty() instead of open coding it.
Michael Stefaniuc
mstefani at redhat.de
Tue May 3 14:47:08 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
dlls/winex11.drv/x11drv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h
index 23f4ab6..a075a00 100644
--- a/dlls/winex11.drv/x11drv.h
+++ b/dlls/winex11.drv/x11drv.h
@@ -134,7 +134,7 @@ static inline void reset_bounds( RECT *bounds )
static inline void add_bounds_rect( RECT *bounds, const RECT *rect )
{
- if (rect->left >= rect->right || rect->top >= rect->bottom) return;
+ if (IsRectEmpty(rect)) return;
bounds->left = min( bounds->left, rect->left );
bounds->top = min( bounds->top, rect->top );
bounds->right = max( bounds->right, rect->right );
--
2.4.11
More information about the wine-patches
mailing list