[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT c4a735f] Allow to unscale the output window with
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT c4a735f] Allow to unscale the output window with a Ctrl-Alt-uhotkey |
Date: |
Thu, 10 Sep 2009 16:08:49 -0000 |
From: malc <address@hidden>
Signed-off-by: malc <address@hidden>
diff --git a/qemu-doc.texi b/qemu-doc.texi
index 68a6842..2f566b6 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -241,6 +241,9 @@ During the graphical emulation, you can use the following
keys:
@item Ctrl-Alt-f
Toggle full screen
address@hidden Ctrl-Alt-u
+Restore the screen's un-scaled dimensions
+
@item Ctrl-Alt-n
Switch to virtual console 'n'. Standard console mappings are:
@table @emph
diff --git a/sdl.c b/sdl.c
index 33edfb8..de63c7f 100644
--- a/sdl.c
+++ b/sdl.c
@@ -569,6 +569,12 @@ static void sdl_refresh(DisplayState *ds)
toggle_full_screen(ds);
gui_keysym = 1;
break;
+ case 0x16: /* 'u' key on US keyboard */
+ scaling_active = 0;
+ sdl_resize(ds);
+ vga_hw_invalidate();
+ vga_hw_update();
+ break;
case 0x02 ... 0x0a: /* '1' to '9' keys */
/* Reset the modifiers sent to the current console */
reset_keys();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT c4a735f] Allow to unscale the output window with a Ctrl-Alt-uhotkey,
Anthony Liguori <=