summary refs log tree commit diff stats
path: root/hw/vga.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2009-11-27 18:42:26 +0100
committerAurelien Jarno <aurelien@aurel32.net>2009-11-27 18:42:26 +0100
commit3098b9fde97a224e803048c83bebeea176966358 (patch)
treea8b0a340dedfc892665bf88df1494e6718296ab6 /hw/vga.c
parent63e86b2e13396310feff1fe1a5988b5742487636 (diff)
downloadfocaccia-qemu-3098b9fde97a224e803048c83bebeea176966358.tar.gz
focaccia-qemu-3098b9fde97a224e803048c83bebeea176966358.zip
Revert "vga: do not resize the screen on hw_invalidate"
This causes ctrl+alt+u or ctrl+alt+f to not work when windows hasn't been
resized first. Other graphic emulators do resize the screen on
hw_invalidate.

This reverts commit 0bd8246bfec1dfb2eb959f52db535572c0260f4c.
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 2cde362cf1..740fe28352 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1852,8 +1852,7 @@ static void vga_update_display(void *opaque)
     if (ds_get_bits_per_pixel(s->ds) == 0) {
         /* nothing to do */
     } else {
-        full_update = s->full_update;
-        s->full_update = 0;
+        full_update = 0;
         if (!(s->ar_index & 0x20)) {
             graphic_mode = GMODE_BLANK;
         } else {
@@ -1883,7 +1882,8 @@ static void vga_invalidate_display(void *opaque)
 {
     VGACommonState *s = opaque;
 
-    s->full_update = 1;
+    s->last_width = -1;
+    s->last_height = -1;
 }
 
 void vga_common_reset(VGACommonState *s)