aboutsummaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2009-08-03 16:14:39 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:31 -0500
commit0bd8246bfec1dfb2eb959f52db535572c0260f4c (patch)
tree72c6badfd7165c7a1687c3153ba84ee6718bf77e /hw/vga.c
parentae2883471b8975417a8d15464b433e8b4e41e97e (diff)
vga: do not resize the screen on hw_invalidate
Hi all, currently vga always resizes the screen when vga_hw_invalidate is called while this is not required and all the other graphic emulators don't. This patch fixes it, making vga invalidate behaviour consistent with the other emulated devices. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
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 4d74ffe2d9..53b5ff6d0d 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1837,7 +1837,8 @@ static void vga_update_display(void *opaque)
if (ds_get_bits_per_pixel(s->ds) == 0) {
/* nothing to do */
} else {
- full_update = 0;
+ full_update = s->full_update;
+ s->full_update = 0;
if (!(s->ar_index & 0x20)) {
graphic_mode = GMODE_BLANK;
} else {
@@ -1867,8 +1868,7 @@ static void vga_invalidate_display(void *opaque)
{
VGAState *s = (VGAState *)opaque;
- s->last_width = -1;
- s->last_height = -1;
+ s->full_update = 1;
}
void vga_reset(void *opaque)