From 8db667fe132e102205b58f7e12225ce63ed340d1 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Thu, 16 Aug 2018 10:59:47 -0500 Subject: [PATCH] Don't black out screen when no data in savestate. --- gtk/Makefile.am | 1 - port.h | 2 +- snapshot.cpp | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 322ed696..053c0b6d 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -132,7 +132,6 @@ snes9x_gtk_SOURCES += \ # Byuu's APU snes9x_gtk_SOURCES += \ ../apu/bapu/dsp/sdsp.cpp \ - ../apu/bapu/dsp/SPC_DSP.cpp \ ../apu/bapu/smp/smp.cpp \ ../apu/bapu/smp/smp_state.cpp diff --git a/port.h b/port.h index a0f3c470..26338af4 100644 --- a/port.h +++ b/port.h @@ -207,7 +207,7 @@ #include #ifdef __WIN32__ -#define NOMINMAX +#define NOMINMAX 1 #include #endif diff --git a/snapshot.cpp b/snapshot.cpp index 9d5a0c22..c62c5079 100644 --- a/snapshot.cpp +++ b/snapshot.cpp @@ -1939,12 +1939,6 @@ int S9xUnfreezeFromStream (STREAM stream) delete ssi; } - else - { - // couldn't load graphics, so black out the screen instead - for (uint32 y = 0; y < (uint32) (IMAGE_HEIGHT); y++) - memset(GFX.Screen + y * GFX.RealPPL, 0, GFX.RealPPL * 2); - } } if (local_cpu) delete [] local_cpu;