Commit 3bee8bd013bf92f81f5826f75e72f48b6a017150

Authored by aurel32
1 parent a5b38b51

SDL: Fix dead keys

(Samuel Thibault)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4208 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
@@ -352,6 +352,7 @@ static void sdl_refresh(DisplayState *ds) @@ -352,6 +352,7 @@ static void sdl_refresh(DisplayState *ds)
352 } 352 }
353 353
354 vga_hw_update(); 354 vga_hw_update();
  355 + SDL_EnableUNICODE(!is_graphic_console());
355 356
356 while (SDL_PollEvent(ev)) { 357 while (SDL_PollEvent(ev)) {
357 switch (ev->type) { 358 switch (ev->type) {
@@ -640,7 +641,6 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame) @@ -640,7 +641,6 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
640 sdl_resize(ds, 640, 400); 641 sdl_resize(ds, 640, 400);
641 sdl_update_caption(); 642 sdl_update_caption();
642 SDL_EnableKeyRepeat(250, 50); 643 SDL_EnableKeyRepeat(250, 50);
643 - SDL_EnableUNICODE(1);  
644 gui_grab = 0; 644 gui_grab = 0;
645 645
646 sdl_cursor_hidden = SDL_CreateCursor(&data, &data, 8, 1, 0, 0); 646 sdl_cursor_hidden = SDL_CreateCursor(&data, &data, 8, 1, 0, 0);