cpu_single_env init
[qemu] / sdl.c
diff --git a/sdl.c b/sdl.c
index bc6d60d..9819221 100644 (file)
--- a/sdl.c
+++ b/sdl.c
@@ -77,6 +77,7 @@ static const uint8_t x_keycode_to_pc_keycode[61] = {
    0xd3,      /* 107  Del    */
    0x9c,      /* 108  Enter  */
    0x9d,      /* 109  Ctrl-R */
+   0x0,       /* 110  Pause  */
    0xb7,      /* 111  Print  */
    0xb5,      /* 112  Divide */
    0xb8,      /* 113  Alt-R  */
@@ -263,8 +264,8 @@ static void toggle_full_screen(DisplayState *ds)
         if (!gui_saved_grab)
             sdl_grab_end();
     }
+    vga_invalidate_display();
     vga_update_display();
-    sdl_update(ds, 0, 0, screen->w, screen->h);
 }
 
 static void sdl_refresh(DisplayState *ds)
@@ -317,7 +318,7 @@ static void sdl_refresh(DisplayState *ds)
             sdl_process_key(&ev->key);
             break;
         case SDL_QUIT:
-            reset_requested = 1;
+            qemu_system_shutdown_request();
             break;
         case SDL_MOUSEMOTION:
             if (gui_grab) {