Don't black out screen when no data in savestate.

This commit is contained in:
Brandon Wright 2018-08-16 10:59:47 -05:00
parent 26066945d2
commit 8db667fe13
3 changed files with 1 additions and 8 deletions

View File

@ -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

2
port.h
View File

@ -207,7 +207,7 @@
#include <sys/types.h>
#ifdef __WIN32__
#define NOMINMAX
#define NOMINMAX 1
#include <windows.h>
#endif

View File

@ -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;