From: Toni Wilen Date: Fri, 17 Aug 2018 20:16:01 +0000 (+0300) Subject: Skip blit validation if blit call is "fake" memory to VRAM generated. X-Git-Tag: 4100~121 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=c2287d655acbbef2108c0fc93ab248db75595347;p=francis%2Fwinuae.git Skip blit validation if blit call is "fake" memory to VRAM generated. --- diff --git a/qemuvga/cirrus_vga.cpp b/qemuvga/cirrus_vga.cpp index dcd0e27a..fa12e856 100644 --- a/qemuvga/cirrus_vga.cpp +++ b/qemuvga/cirrus_vga.cpp @@ -178,7 +178,7 @@ static void check_blit(int32_t addr, uint32_t mask, int pitch, int width, int *h { int h = *height; int32_t off; - if (!h || !width) + if (!h || !width || (!addr && !mask)) return; addr &= mask; off = addr + pitch * (h - 1);