all repos — mgba @ a1cdd65e19e73e4ddfbd828582f83d6fb0c48fe0

mGBA Game Boy Advance Emulator

GBA Video: Add missing initializers
Vicki Pfau vi@endrift.com
Mon, 03 Jun 2019 11:46:57 -0700
commit

a1cdd65e19e73e4ddfbd828582f83d6fb0c48fe0

parent

2ef05b9aad15e43a9898bd427b7160d51f313ab0

2 files changed, 22 insertions(+), 0 deletions(-)

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

@@ -44,6 +44,17 @@ renderer->d.disableBG[2] = false;

renderer->d.disableBG[3] = false; renderer->d.disableOBJ = false; + renderer->d.highlightBG[0] = false; + renderer->d.highlightBG[1] = false; + renderer->d.highlightBG[2] = false; + renderer->d.highlightBG[3] = false; + int i; + for (i = 0; i < 128; ++i) { + renderer->d.highlightOBJ[i] = false; + } + renderer->d.highlightColor = 0xFFFFFF; + renderer->d.highlightAmount = 0; + renderer->logger->context = renderer; renderer->logger->parsePacket = _parsePacket; renderer->logger->handleEvent = _handleEvent;
M src/gba/renderers/gl.csrc/gba/renderers/gl.c

@@ -651,6 +651,17 @@ renderer->d.disableBG[2] = false;

renderer->d.disableBG[3] = false; renderer->d.disableOBJ = false; + renderer->d.highlightBG[0] = false; + renderer->d.highlightBG[1] = false; + renderer->d.highlightBG[2] = false; + renderer->d.highlightBG[3] = false; + int i; + for (i = 0; i < 128; ++i) { + renderer->d.highlightOBJ[i] = false; + } + renderer->d.highlightColor = 0xFFFFFF; + renderer->d.highlightAmount = 0; + renderer->scale = 1; }