New .INI setting to allow disable unicode (issue 167)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@814 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-05-22 19:02:23 +00:00
parent f4cb7985f2
commit 8f5fc2c923
5 changed files with 25 additions and 3 deletions

View File

@@ -142,7 +142,8 @@ byte Readline_ex(word x_pos,word y_pos,char * str,byte visible_size,byte max_siz
byte offset=0; // index du premier caractère affiché
SDL_EnableUNICODE(SDL_ENABLE);
if (Config.Use_unicode)
SDL_EnableUNICODE(SDL_ENABLE);
Hide_cursor();
// Effacement de la chaîne
@@ -348,7 +349,8 @@ affichage:
Update_rect(Window_pos_X+(x_pos*Menu_factor_X),Window_pos_Y+(y_pos*Menu_factor_Y),
visible_size*(Menu_factor_X<<3),(Menu_factor_Y<<3));
SDL_EnableUNICODE(SDL_DISABLE);
if (Config.Use_unicode)
SDL_EnableUNICODE(SDL_DISABLE);
return (input_key==SDLK_RETURN);
}