X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fplat_sdl.c;h=600af45a2a17b4edcffc3cd6b51dd827d1352438;hb=27f190ea0097fa6a6f51bfacfd38a984d797e59b;hp=d8935ac834ec2e3e52a2ece5f89be35d778a28d9;hpb=bec84f9200faffe4992cae26ddcf5c4fd3d0b789;p=picodrive.git diff --git a/platform/common/plat_sdl.c b/platform/common/plat_sdl.c index d8935ac..600af45 100644 --- a/platform/common/plat_sdl.c +++ b/platform/common/plat_sdl.c @@ -17,10 +17,6 @@ #include "input_pico.h" #include "version.h" -// FIXME: these 2 shouldn't be here -static unsigned char PicoDraw2FB_[(8+320) * (8+240+8)]; -unsigned char *PicoDraw2FB = PicoDraw2FB_; - static void *shadow_fb; static const struct in_default_bind in_sdl_defbinds[] = { @@ -142,6 +138,7 @@ void plat_video_wait_vsync(void) void plat_video_menu_enter(int is_rom_loaded) { plat_sdl_change_video_mode(g_menuscreen_w, g_menuscreen_h, 0); + g_screen_ptr = shadow_fb; } void plat_video_menu_begin(void) @@ -217,7 +214,7 @@ void plat_init(void) plat_sdl_quit_cb = plat_sdl_quit; - SDL_WM_SetCaption("PicoDrive" VERSION, NULL); + SDL_WM_SetCaption("PicoDrive " VERSION, NULL); g_menuscreen_w = plat_sdl_screen->w; g_menuscreen_h = plat_sdl_screen->h;