From b48eb99d54ba1cf0d0f62454ec8eca0fd0852aed Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 14 Feb 2018 20:32:07 +0200 Subject: [PATCH] CL blitter bounds check fix. --- qemuvga/cirrus_vga.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemuvga/cirrus_vga.cpp b/qemuvga/cirrus_vga.cpp index ea51fec7..9502dca9 100644 --- a/qemuvga/cirrus_vga.cpp +++ b/qemuvga/cirrus_vga.cpp @@ -205,7 +205,7 @@ static void check_blit(int32_t addr, uint32_t mask, int pitch, int width, int *h dst += (dstaddr & dstmask); #define BLTCHECK_DST(skip) \ - check_blit(dstaddr, dstmask, dstpitch, bltwidth - skip, &bltheight, DEPTH, 1); + check_blit(dstaddr + skip, dstmask, dstpitch, bltwidth - skip, &bltheight, DEPTH, 1); #define BLTCHECK_FWD \ check_blit(dstaddr, dstmask, dstpitch, bltwidth, &bltheight, 8, 1); \ -- 2.47.3