]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
CL blitter bounds check fix.
authorToni Wilen <twilen@winuae.net>
Wed, 14 Feb 2018 18:32:07 +0000 (20:32 +0200)
committerToni Wilen <twilen@winuae.net>
Wed, 14 Feb 2018 18:32:07 +0000 (20:32 +0200)
qemuvga/cirrus_vga.cpp

index ea51fec74147e8e1b235ac9a8ddb1d71fd0d44b9..9502dca9d4c9db02f7470ef06509757b1bd0dd78 100644 (file)
@@ -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); \