mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
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
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue