Skip to content

Commit

Permalink
Handle windows when retracing CreateAdditionalSwapChain
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Jun 22, 2012
1 parent c56812e commit 9cb30be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions retrace/d3dretrace.py
Expand Up @@ -48,14 +48,16 @@ def invokeInterfaceMethod(self, interface, method):
print r' d3dretrace::pLastDirect3DDevice9 = _this;'

# create windows as neccessary
if method.name in ('CreateDevice', 'CreateDeviceEx'):
if method.name in ('CreateDevice', 'CreateDeviceEx', 'CreateAdditionalSwapChain'):
print r' HWND hWnd = d3dretrace::createWindow(pPresentationParameters->BackBufferWidth, pPresentationParameters->BackBufferHeight);'
print r' hFocusWindow = hWnd;'
print r' pPresentationParameters->hDeviceWindow = hWnd;'
if 'hFocusWindow' in method.argNames():
print r' hFocusWindow = hWnd;'

# notify frame has been completed
if method.name == 'Present':
print r' retrace::frameComplete(call);'
print r' hDestWindowOverride = NULL;'

if 'pSharedHandle' in method.argNames():
print r' if (pSharedHandle) {'
Expand Down

0 comments on commit 9cb30be

Please sign in to comment.