From: Avi Kivity <[email protected]> This reverts commit 0bd8246bfec1dfb2eb959f52db535572c0260f4c.
Signed-off-by: Avi Kivity <[email protected]> diff --git a/hw/vga.c b/hw/vga.c index 216ee63..887e640 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -1842,8 +1842,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 { @@ -1876,7 +1875,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) diff --git a/hw/vga_int.h b/hw/vga_int.h index b9e4e7b..ca800ff 100644 --- a/hw/vga_int.h +++ b/hw/vga_int.h @@ -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, -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
