]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
Revert "vga: do not resize the screen on hw_invalidate"
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 27 Nov 2009 17:42:26 +0000 (18:42 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 27 Nov 2009 17:46:04 +0000 (18:46 +0100)
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.

hw/vga.c
hw/vga_int.h

index 27612aca439a433e49d0c21bb95dd2c1ff1db0b0..c5abd299f5553e614fcc3710bf80dfa849635673 100644 (file)
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1839,8 +1839,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 {
@@ -1870,7 +1869,8 @@ static void vga_invalidate_display(void *opaque)
 {
     VGAState *s = (VGAState *)opaque;
 
-    s->full_update = 1;
+    s->last_width = -1;
+    s->last_height = -1;
 }
 
 void vga_reset(void *opaque)
index 8fdf51dc6199442c4c02c8a3a3a3b1ca119ff216..631b1b0fc35bcd3a718ec447c8542eb0718c39fb 100644 (file)
@@ -158,7 +158,6 @@ typedef struct VGACommonState {
     uint32_t last_width, last_height; /* in chars or pixels */
     uint32_t last_scr_width, last_scr_height; /* in pixels */
     uint32_t last_depth; /* in bits */
-    uint8_t full_update;
     uint8_t cursor_start, cursor_end;
     uint32_t cursor_offset;
     unsigned int (*rgb_to_pixel)(unsigned int r,