wined3d: Use SetRectEmpty() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-03-03 09:31:52 +01:00 committed by Alexandre Julliard
parent 3db08a49e1
commit a29a3c8a0b

View file

@ -1651,10 +1651,8 @@ HRESULT CDECL wined3d_texture_update_overlay(struct wined3d_texture *texture, un
else if (flags & WINEDDOVER_HIDE)
{
/* Tests show that the rectangles are erased on hide. */
surface->overlay_srcrect.left = 0; surface->overlay_srcrect.top = 0;
surface->overlay_srcrect.right = 0; surface->overlay_srcrect.bottom = 0;
surface->overlay_destrect.left = 0; surface->overlay_destrect.top = 0;
surface->overlay_destrect.right = 0; surface->overlay_destrect.bottom = 0;
SetRectEmpty(&surface->overlay_srcrect);
SetRectEmpty(&surface->overlay_destrect);
surface->overlay_dest = NULL;
}