From cc4e60954f74eae72a678644f0c579f3454ddfeb Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Wed, 17 Jun 2009 18:28:41 +0000 Subject: [PATCH] Fix issue 180: Quicksearch filenames and brush resize shortcuts don't work git-svn-id: svn://pulkomandy.tk/GrafX2/branches/release@874 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- main.c | 1 + readline.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/main.c b/main.c index 65ae2dea..f3512d29 100644 --- a/main.c +++ b/main.c @@ -408,6 +408,7 @@ int Init_program(int argc,char * argv[]) } Joystick = SDL_JoystickOpen(0); SDL_EnableKeyRepeat(250, 32); + SDL_EnableUNICODE(SDL_ENABLE); SDL_WM_SetCaption("GrafX2","GrafX2"); { diff --git a/readline.c b/readline.c index 051714d9..293de1b5 100644 --- a/readline.c +++ b/readline.c @@ -142,8 +142,6 @@ 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); - Hide_cursor(); // Effacement de la chaîne Block(Window_pos_X+(x_pos*Menu_factor_X),Window_pos_Y+(y_pos*Menu_factor_Y), @@ -348,7 +346,5 @@ 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); - return (input_key==SDLK_RETURN); }