From 7fd5187611082e11859abca059f3ac6a6118fe01 Mon Sep 17 00:00:00 2001 From: jbo_85 <> Date: Fri, 17 Feb 2006 00:22:24 +0000 Subject: [PATCH] Fixed black screen after the computer was locked. --- zsnes/src/win/winlink.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 4055bc6d..3616440c 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -342,7 +342,6 @@ void DDrawError(){ extern "C" BYTE vsyncon; extern "C" BYTE KitchenSync; extern "C" BYTE TripleBufferWin; -extern "C" BYTE EMUPaused; extern "C" BYTE PauseFocusChange; void DrawScreen() @@ -1698,7 +1697,9 @@ DWORD LockSurface() else { if (hRes == DDERR_SURFACELOST) + DD_Primary->Restore(); DD_CFB->Restore(); + Clear2xSaIBuffer(); return(0); } } @@ -1723,7 +1724,9 @@ DWORD LockSurface() else { if (hRes == DDERR_SURFACELOST) + DD_Primary->Restore(); DD_CFB16->Restore(); + Clear2xSaIBuffer(); return(0); } }