all repos — mgba @ 7edf7cdb159618bfe4c58d1306f004238556b25a

mGBA Game Boy Advance Emulator

GBA Video: Pass disabled layers through proxy
Vicki Pfau vi@endrift.com
Fri, 10 May 2019 12:26:39 -0700
commit

7edf7cdb159618bfe4c58d1306f004238556b25a

parent

51a174e4c57ca7a8189ee53b6bc227fe5698442a

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

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

@@ -182,6 +182,11 @@ logger->readData(logger, NULL, 0x1000, true);

} break; case DIRTY_SCANLINE: + proxyRenderer->backend->disableBG[0] = proxyRenderer->d.disableBG[0]; + proxyRenderer->backend->disableBG[1] = proxyRenderer->d.disableBG[1]; + proxyRenderer->backend->disableBG[2] = proxyRenderer->d.disableBG[2]; + proxyRenderer->backend->disableBG[3] = proxyRenderer->d.disableBG[3]; + proxyRenderer->backend->disableOBJ = proxyRenderer->d.disableOBJ; if (item->address < GBA_VIDEO_VERTICAL_PIXELS) { proxyRenderer->backend->drawScanline(proxyRenderer->backend, item->address); }