Take out mednafen_buf

This commit is contained in:
twinaphex 2014-06-23 00:47:00 +02:00
parent 7196fc6213
commit 16a73a34db

View File

@ -91,12 +91,6 @@ static bool is_pal = false;
#define FB_MAX_HEIGHT FB_HEIGHT
// Wastes a little space for NTSC PSX, but better than dynamically allocating.
#ifdef WANT_16BPP
static uint16_t mednafen_buf[FB_WIDTH * FB_MAX_HEIGHT];
#else
static uint32_t mednafen_buf[FB_WIDTH * FB_MAX_HEIGHT];
#endif
const char *mednafen_core_str = MEDNAFEN_CORE_NAME;
static void check_system_specs(void)
@ -263,7 +257,7 @@ bool retro_load_game(const struct retro_game_info *info)
MDFN_PixelFormat pix_fmt(MDFN_COLORSPACE_RGB, 16, 8, 0, 24);
memset(&last_pixel_format, 0, sizeof(MDFN_PixelFormat));
surf = new MDFN_Surface(mednafen_buf, FB_WIDTH, FB_HEIGHT, FB_WIDTH, pix_fmt);
surf = new MDFN_Surface(NULL, FB_WIDTH, FB_HEIGHT, FB_WIDTH, pix_fmt);
#ifdef NEED_DEINTERLACER
PrevInterlaced = false;