]> git.proxmox.com Git - qemu.git/commitdiff
vga: Fix full updates in graphic mode
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 7 Feb 2012 15:03:24 +0000 (16:03 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 11 Feb 2012 10:39:57 +0000 (10:39 +0000)
This fixes the regression introduced by cd7a45c95e: We lost the or'ing
with the full_update flag.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/vga.c

index d27700d41b818f94ebd59fee47675a43796dcaf9..c1029dbd9b5b07283941b735f05e8775a73e95d0 100644 (file)
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1777,10 +1777,11 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
         if (!(s->cr[VGA_CRTC_MODE] & 2)) {
             addr = (addr & ~0x8000) | ((y1 & 2) << 14);
         }
+        update = full_update;
         page0 = addr;
         page1 = addr + bwidth - 1;
-        update = memory_region_get_dirty(&s->vram, page0, page1 - page0,
-                                         DIRTY_MEMORY_VGA);
+        update |= memory_region_get_dirty(&s->vram, page0, page1 - page0,
+                                          DIRTY_MEMORY_VGA);
         /* explicit invalidation for the hardware cursor */
         update |= (s->invalidated_y_table[y >> 5] >> (y & 0x1f)) & 1;
         if (update) {