From 58a77bde4b36f6a5e209b7042d4889cc615de881 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 7 Sep 2023 16:07:18 +0200 Subject: [PATCH] one less ifdef --- src/x48.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/x48.c b/src/x48.c index 3728893..8c67513 100644 --- a/src/x48.c +++ b/src/x48.c @@ -1883,15 +1883,6 @@ void adjust_contrast( int contrast ) { } } } -#elif defined( GUI_IS_SDL1 ) -void adjust_contrast( int contrast ) { - SDLCreateColors(); - SDLCreateAnnunc(); - redraw_display(); -} -#endif - -#if defined( GUI_IS_X11 ) void exit_x48( int tell_x11 ) { exit_emulator(); @@ -4927,6 +4918,12 @@ int get_ui_event( void ) { #elif defined( GUI_IS_SDL1 ) +void adjust_contrast( int contrast ) { + SDLCreateColors(); + SDLCreateAnnunc(); + redraw_display(); +} + void exit_x48( int tell_x11 ) { exit_emulator();