ddraw: Use SetRectEmpty() instead of memset().
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
0d001e3e1c
commit
3e8a683658
|
@ -1012,7 +1012,7 @@ static HRESULT surface_lock(struct ddraw_surface *surface,
|
||||||
if (surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
|
if (surface->surface_desc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
|
||||||
{
|
{
|
||||||
if (flags & DDLOCK_READONLY)
|
if (flags & DDLOCK_READONLY)
|
||||||
memset(&surface->ddraw->primary_lock, 0, sizeof(surface->ddraw->primary_lock));
|
SetRectEmpty(&surface->ddraw->primary_lock);
|
||||||
else if (rect)
|
else if (rect)
|
||||||
surface->ddraw->primary_lock = *rect;
|
surface->ddraw->primary_lock = *rect;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue