Commit be4221d9 authored by Mark Cave-Ayland's avatar Mark Cave-Ayland
Browse files

cg3: fix up size parameter for memory_region_get_dirty()



The code was incorrectly calculating the end address rather than the size of
the required region.

Signed-off-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 66e2f304
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ static void cg3_update_display(void *opaque)
        int update = s->full_update;

        page = y * width;
        update |= memory_region_get_dirty(&s->vram_mem, page, page + width,
        update |= memory_region_get_dirty(&s->vram_mem, page, width,
                                          DIRTY_MEMORY_VGA);
        if (update) {
            if (y_start < 0) {