From 598367432c1c129edb170f8dd2841f92aa5d572e Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Tue, 12 Jun 2001 02:11:35 +0000 Subject: [PATCH] Fixed another resolution switching bug --- zsnes/src/win/winlink.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 173f0c40..82ffce2a 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -1590,23 +1590,23 @@ void initwinvideo(void) PrevFull = 0; ReleaseDirectDraw(); InitDirectDraw(); + return; } - if (FullScreen == 1 && PrevFull != 1) + if (FullScreen == 1 && PrevFull != 1 || newmode == 1) { PrevFull = 1; InitDirectDraw(); + clearwin(); + return; } - if (FullScreen == 0 || newmode == 1) - { - if (newmode) clearwin(); - } - if (FullScreen == 1 && newmode == 1) { ReleaseDirectDraw(); InitDirectDraw(); + clearwin(); + return; } }