aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-10 05:15:07 +0400
committermalc <av1474@comtv.ru>2009-09-10 05:16:16 +0400
commitc4a735f9cbae68f4c12f77bb3d532e8c54cb5962 (patch)
tree2c1481b8d6d509c2ac79b91ec626d691a07405d0 /sdl.c
parent13f5545daa8b4d12221bc69287c6a5d87962e115 (diff)
downloadqemu-c4a735f9cbae68f4c12f77bb3d532e8c54cb5962.zip
qemu-c4a735f9cbae68f4c12f77bb3d532e8c54cb5962.tar.gz
qemu-c4a735f9cbae68f4c12f77bb3d532e8c54cb5962.tar.bz2
Allow to unscale the output window with a Ctrl-Alt-u hotkey
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c6
1 files changed, 6 insertions, 0 deletions
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();