wineandroid: Use EqualRect() instead of memcmp().

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2017-07-07 17:15:11 +02:00 committed by Alexandre Julliard
parent e2ae9e3c58
commit ba0afd26e7
1 changed files with 1 additions and 1 deletions

View File

@ -1264,7 +1264,7 @@ BOOL CDECL ANDROID_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
surface = NULL;
}
if (!surface || memcmp( &surface->rect, &rect, sizeof(RECT) ))
if (!surface || !EqualRect( &surface->rect, &rect ))
{
data->surface = create_surface( data->hwnd, &rect, 255, color_key, TRUE );
if (surface) window_surface_release( surface );