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:
parent
3db08a49e1
commit
a29a3c8a0b
|
@ -1651,10 +1651,8 @@ HRESULT CDECL wined3d_texture_update_overlay(struct wined3d_texture *texture, un
|
||||||
else if (flags & WINEDDOVER_HIDE)
|
else if (flags & WINEDDOVER_HIDE)
|
||||||
{
|
{
|
||||||
/* Tests show that the rectangles are erased on hide. */
|
/* Tests show that the rectangles are erased on hide. */
|
||||||
surface->overlay_srcrect.left = 0; surface->overlay_srcrect.top = 0;
|
SetRectEmpty(&surface->overlay_srcrect);
|
||||||
surface->overlay_srcrect.right = 0; surface->overlay_srcrect.bottom = 0;
|
SetRectEmpty(&surface->overlay_destrect);
|
||||||
surface->overlay_destrect.left = 0; surface->overlay_destrect.top = 0;
|
|
||||||
surface->overlay_destrect.right = 0; surface->overlay_destrect.bottom = 0;
|
|
||||||
surface->overlay_dest = NULL;
|
surface->overlay_dest = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue