Message ID | 5887254f.863a240a.2c122.5500@mx.google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index 379910d..fa56730 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -277,7 +277,8 @@ static bool blit_region_is_unsafe(struct CirrusVGAState *s, } if (pitch < 0) { int64_t min = addr - + ((int64_t)s->cirrus_blt_height-1) * pitch; + + ((int64_t)s->cirrus_blt_height - 1) * pitch + - s->cirrus_blt_width; int32_t max = addr + s->cirrus_blt_width; if (min < 0 || max > s->vga.vram_size) {