platform sdl, preliminary window resizing fixes

picodrive doesn't handle resize events, so it's not really working :-/
it however uncovered some bugs and strange behaviour, though
This commit is contained in:
kub 2022-03-06 18:39:46 +00:00
parent e48f3f2795
commit f8aaa200cf
5 changed files with 95 additions and 35 deletions

View file

@ -84,21 +84,23 @@ int main(int argc, char *argv[])
//in_probe();
plat_target_init();
plat_init();
menu_init();
emu_prep_defconfig(); // depends on input
emu_read_config(NULL, 0);
plat_init();
menu_init();
emu_init();
engineState = PGS_Menu;
plat_video_menu_enter(0);
if (argc > 1)
parse_cmd_line(argc, argv);
if (engineState == PGS_ReloadRom)
{
plat_video_menu_begin();
if (emu_reload_rom(rom_fname_reload)) {
engineState = PGS_Running;
if (load_state_slot >= 0) {
@ -106,7 +108,9 @@ int main(int argc, char *argv[])
emu_save_load_game(1, 0);
}
}
plat_video_menu_end();
}
plat_video_menu_leave();
for (;;)
{