From f6529b544f803e76557f39f5f3cf9f91a7bf747e Mon Sep 17 00:00:00 2001 From: "fabio.olimpieri" Date: Mon, 17 Nov 2014 10:59:42 +0000 Subject: [PATCH] No resolution change with Picasso card emulation --- src/gfx-sdl/sdlgfx.c | 2 +- src/gui-sdl/gui-sdl.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gfx-sdl/sdlgfx.c b/src/gfx-sdl/sdlgfx.c index af3efad..bb8c5d5 100644 --- a/src/gfx-sdl/sdlgfx.c +++ b/src/gfx-sdl/sdlgfx.c @@ -77,7 +77,7 @@ static int red_bits, green_bits, blue_bits; static int red_shift, green_shift, blue_shift; #ifdef PICASSO96 -static int screen_is_picasso; +int screen_is_picasso; static int screen_was_picasso; static char picasso_invalid_lines[1201]; static int picasso_has_invalid_lines; diff --git a/src/gui-sdl/gui-sdl.c b/src/gui-sdl/gui-sdl.c index 37dd3d9..bef7ab9 100644 --- a/src/gui-sdl/gui-sdl.c +++ b/src/gui-sdl/gui-sdl.c @@ -45,7 +45,7 @@ static const char *main_menu_messages[] = { /*01*/ "^|df0|df1|df2|df3", /*02*/ "States", /*03*/ "^|Load|Save|Delete", - /*04*/ "#1-------------------------------------", + /*04*/ "#1-----------------------------------------------", /*05*/ "Wiimote configuration", /*06*/ "^|Wiimote1|Wiimote2", /*07*/ "Hardware options", @@ -1239,6 +1239,8 @@ static void set_gfx_resolution (int res) } } +extern int screen_is_picasso; + static void other_options(void) { int submenus[8]; @@ -1265,7 +1267,11 @@ static void other_options(void) set_floppy_speed(submenus[0]); set_floppy_number(submenus[1]); set_gfx_aspect_ratio(submenus[2]); - if (old_sub_3 != submenus[3]) set_gfx_resolution(submenus[3]); + if (old_sub_3 != submenus[3]) + { + if (screen_is_picasso) msgInfo("No gfx change with Picasso",3000,NULL); + else set_gfx_resolution(submenus[3]); + } if (changed_prefs.gfx_width_win == 640) changed_prefs.gfx_linedbl = submenus[4] ? 1 : 2; changed_prefs.leds_on_screen = !submenus[5]; set_Port(submenus[6]);