From c19f86b1f8ac0f8278af905526c3be86a7b412b5 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Tue, 12 Jun 2001 19:16:53 +0000 Subject: [PATCH] Cleaned up resolution switching code --- zsnes/src/win/winlink.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 805e5136..d24cb193 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -1576,24 +1576,7 @@ void initwinvideo(void) if (Moving == 1) return; - if (FullScreen == 0 && PrevFull == 1 || newmode == 1) - { - PrevFull = 0; - ReleaseDirectDraw(); - InitDirectDraw(); - clearwin(); - return; - } - - if (FullScreen == 1 && PrevFull != 1) - { - PrevFull = 1; - InitDirectDraw(); - clearwin(); - return; - } - - if (FullScreen == 1 && newmode == 1) + if (newmode == 1) { ReleaseDirectDraw(); InitDirectDraw();