winex11.drv: Use IsRectEmpty() instead of open coding it.

Alexandre Julliard julliard at winehq.org
Wed May 4 02:58:42 CDT 2016


Michael Stefaniuc <mstefani at redhat.de> writes:

> @@ -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;

I'm not sure it's an improvement to add a function call in such a simple
inline function.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list