X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplat_sdl.c;h=e3d70f60929cb1b2a0463eb8adc1024c201ab469;hp=ec2d9c24ab6270e82794e8b97827a9a337ef5000;hb=69e482e3def6669a4fa921d07f9ba04883d7de34;hpb=5b9aa74918361ff5d306c39cb695a77d7ea40b8f diff --git a/frontend/plat_sdl.c b/frontend/plat_sdl.c index ec2d9c24..e3d70f60 100644 --- a/frontend/plat_sdl.c +++ b/frontend/plat_sdl.c @@ -69,7 +69,12 @@ static int change_video_mode(void) h = psx_h; } - return plat_sdl_change_video_mode(w, h); + return plat_sdl_change_video_mode(w, h, 0); +} + +static void quit_cb(void) +{ + emu_core_ask_exit(); } void plat_init(void) @@ -95,6 +100,7 @@ void plat_init(void) pl_rearmed_cbs.only_16bpp = 1; bgr_to_uyvy_init(); + plat_sdl_quit_cb = quit_cb; } void plat_finish(void)