Commit a29a3c8a authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent 3db08a49
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment