all repos — mgba @ 4ea2a8c6f3fae794d54b35057a4947dddc886502

mGBA Game Boy Advance Emulator

GB Video: Copy layer disable state across proxy
Vicki Pfau vi@endrift.com
Wed, 21 Oct 2020 21:31:23 -0700
commit

4ea2a8c6f3fae794d54b35057a4947dddc886502

parent

ac8d1e2bf6169b4adbe1f9e28f36c381f1b6097d

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gb/extra/proxy.csrc/gb/extra/proxy.c

@@ -132,6 +132,9 @@ proxyRenderer->backend->writeOAM(proxyRenderer->backend, item->address);

} break; case DIRTY_VRAM: + proxyRenderer->backend->disableBG = proxyRenderer->d.disableBG; + proxyRenderer->backend->disableWIN = proxyRenderer->d.disableWIN; + proxyRenderer->backend->disableOBJ = proxyRenderer->d.disableOBJ; if (item->address <= GB_SIZE_VRAM - 0x1000) { logger->readData(logger, &logger->vram[item->address >> 1], 0x1000, true); proxyRenderer->backend->writeVRAM(proxyRenderer->backend, item->address);