revert sdl to old code when USE_UTF8=no
authorborg323 <4010067-borg323@users.noreply.gitlab.com>
Fri, 5 Jul 2019 13:48:38 +0000 (16:48 +0300)
committerborg323 <4010067-borg323@users.noreply.gitlab.com>
Fri, 5 Jul 2019 13:48:38 +0000 (16:48 +0300)
src/sdl/sf_osfdlg.c

index 86a966dccdc0276fe110405ae49beb59e6cd363d..a330598109a8e5c0f1261a27e1349d300f6c0d7a 100644 (file)
@@ -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;