| Submitter | Jan Kiszka |
|---|---|
| Date | July 30, 2011, 9:39 a.m. |
| Message ID | <c70f73563afbb2612943c18e932913ec328dc75d.1312018756.git.jan.kiszka@web.de> |
| Download | mbox | patch |
| Permalink | /patch/107490/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/ui/sdl.c b/ui/sdl.c index 9a92b47..1563ee1 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -583,10 +583,12 @@ static void sdl_refresh(DisplayState *ds) gui_keysym = 1; break; case 0x16: /* 'u' key on US keyboard */ - scaling_active = 0; - sdl_resize(ds); - vga_hw_invalidate(); - vga_hw_update(); + if (scaling_active) { + 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 */