From ed2952ece6ede911ff5adc60e612afca4b2e33bd Mon Sep 17 00:00:00 2001 From: borg323 <4010067-borg323@users.noreply.gitlab.com> Date: Fri, 5 Jul 2019 16:48:38 +0300 Subject: [PATCH] revert sdl to old code when USE_UTF8=no --- src/sdl/sf_osfdlg.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sdl/sf_osfdlg.c b/src/sdl/sf_osfdlg.c index 86a966d..a330598 100644 --- a/src/sdl/sf_osfdlg.c +++ b/src/sdl/sf_osfdlg.c @@ -378,7 +378,11 @@ STATIC int myosdialog( bool existing, const char *def, const char *filt, const c //printf("saved: %p %d %d %d %d\n",saved,saved[0],saved[1],saved[2],saved[3]); sf_pushtextsettings(); +#ifndef USE_UTF8 + ts->font = sf_VGA_SFONT; +#else os_set_font(FIXED_WIDTH_FONT); +#endif ts->style = 0; ts->oh = 0; ts->fore = 0; @@ -1005,7 +1009,11 @@ STATIC zword Zentry( int x, int y) } continue; } +#ifndef USE_UTF8 + if ((c >= 32 && c < 127) || (c >= 160 && c < 256)) +#else if ((c >= 32 && c < 127) || (c >= 160 )) +#endif { #ifndef USE_UTF8 cpos = pos; -- 2.34.1