From d1796af441ca1ae9cc460e99c7b9148c66f36cc4 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 18 May 2016 19:24:25 +0300 Subject: [PATCH] Black frame insertion + Pause or GUI: do not show blank screen. --- od-win32/direct3d.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/od-win32/direct3d.cpp b/od-win32/direct3d.cpp index 7c455128..5b6465f8 100644 --- a/od-win32/direct3d.cpp +++ b/od-win32/direct3d.cpp @@ -3388,6 +3388,8 @@ void D3D_showframe_special (int mode) return; if (currprefs.turbo_emulation) return; + if (pause_emulation) + return; hr = d3ddev->Clear (0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, d3ddebug ? 0x80 : 0, 0), 0, 0); D3D_showframe2 (true); flushgpu (true); @@ -3465,6 +3467,8 @@ void D3D_guimode (bool guion) waitfakemode (); if (!isd3d ()) return; + D3D_render2(); + D3D_showframe2(true); hr = d3ddev->SetDialogBoxMode (guion ? TRUE : FALSE); if (FAILED (hr)) write_log (_T("%s: SetDialogBoxMode %s\n"), D3DHEAD, D3D_ErrorString (hr)); -- 2.47.3