diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-02-07 16:03:24 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-02-11 10:39:57 +0000 |
commit | 734781c9a03745a28fba3e538d33d4e39c5e4ff5 (patch) | |
tree | 987df971da72b796a34f4cf97a7a55034d5a83ba /hw/vga.c | |
parent | d1f3dd343c163d0e1d188b964b7d635692bac7d8 (diff) |
vga: Fix full updates in graphic mode
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>
Diffstat (limited to 'hw/vga.c')
-rw-r--r-- | hw/vga.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |