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:
parent
e2ae9e3c58
commit
ba0afd26e7
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue