X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fplat_sdl.c;h=94f6e6ece651dfc33fb8f127030002cb2fd586da;hb=d056bef8510c8c97fdbba948631f52d5a76e6141;hp=28b412d2b3d7ec5c080388eccd295baa1f3b3d7f;hpb=636d5f257c3e5bafba99ddbdc385a289e12c9deb;p=picodrive.git diff --git a/platform/common/plat_sdl.c b/platform/common/plat_sdl.c index 28b412d..94f6e6e 100644 --- a/platform/common/plat_sdl.c +++ b/platform/common/plat_sdl.c @@ -142,6 +142,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) @@ -200,6 +201,12 @@ void plat_early_init(void) { } +static void plat_sdl_quit(void) +{ + // for now.. + exit(1); +} + void plat_init(void) { int shadow_size; @@ -209,7 +216,9 @@ void plat_init(void) if (ret != 0) exit(1); - SDL_WM_SetCaption("PicoDrive" VERSION, NULL); + plat_sdl_quit_cb = plat_sdl_quit; + + SDL_WM_SetCaption("PicoDrive " VERSION, NULL); g_menuscreen_w = plat_sdl_screen->w; g_menuscreen_h = plat_sdl_screen->h;