DXGL r425 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r424‎ | r425 | r426 >
Date:13:37, 13 April 2014
Author:admin
Status:new
Tags:
Comment:
Support IDirectDraw4/IDirectDraw7::RestoreAllSurfaces
Modified paths:
  • /ddraw/glDirectDraw.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirectDraw.cpp
@@ -1624,9 +1624,11 @@
16251625 {
16261626 TRACE_ENTER(1,14,this);
16271627 if(!this) TRACE_RET(HRESULT,23,DDERR_INVALIDOBJECT);
1628 - FIXME("IDirectDraw::RestoreAllSurfaces: stub\n");
1629 - TRACE_EXIT(23,DDERR_GENERIC);
1630 - ERR(DDERR_GENERIC);
 1628+ for (int i = 0; i < surfacecount; i++)
 1629+ {
 1630+ if (surfaces[i]) surfaces[i]->Restore();
 1631+ }
 1632+ return DD_OK;
16311633 }
16321634 HRESULT WINAPI glDirectDraw7::TestCooperativeLevel()
16331635 {