ddraw: Trace which surfaces we enumerate in ddraw7_EnumSurfaces().

This commit is contained in:
Henri Verbeet 2011-08-29 18:58:57 +02:00 committed by Alexandre Julliard
parent 1870353c7a
commit cad9cbe445
1 changed files with 1 additions and 0 deletions

View File

@ -3886,6 +3886,7 @@ static HRESULT WINAPI ddraw7_EnumSurfaces(IDirectDraw7 *iface, DWORD Flags,
surf = LIST_ENTRY(entry, IDirectDrawSurfaceImpl, surface_list_entry); surf = LIST_ENTRY(entry, IDirectDrawSurfaceImpl, surface_list_entry);
if (all || (nomatch != ddraw_match_surface_desc(DDSD, &surf->surface_desc))) if (all || (nomatch != ddraw_match_surface_desc(DDSD, &surf->surface_desc)))
{ {
TRACE("Enumerating surface %p.\n", surf);
desc = surf->surface_desc; desc = surf->surface_desc;
IDirectDrawSurface7_AddRef(&surf->IDirectDrawSurface7_iface); IDirectDrawSurface7_AddRef(&surf->IDirectDrawSurface7_iface);
if (Callback(&surf->IDirectDrawSurface7_iface, &desc, Context) != DDENUMRET_OK) if (Callback(&surf->IDirectDrawSurface7_iface, &desc, Context) != DDENUMRET_OK)