aboutsummaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2012-02-04 17:09:14 +0000
committerBlue Swirl <blauwirbel@gmail.com>2012-02-11 10:39:13 +0000
commitd1f3dd343c163d0e1d188b964b7d635692bac7d8 (patch)
treeab87f03995810cc2038c7c4478c307f87dc72386 /hw/vga.c
parent57c83dacfe179bf061b8fa79d9553ebabe4d2ff4 (diff)
Fix memory dirty getting API change fallout
Fix confusion in length calculation in commit cd7a45c95ecf2404810f3c6becb7cb83c5010ad8. Reported-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vga.c b/hw/vga.c
index d87c4f9f5b..d27700d41b 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1779,7 +1779,7 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
}
page0 = addr;
page1 = addr + bwidth - 1;
- update = memory_region_get_dirty(&s->vram, page0, page1,
+ 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;