mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Add missing initializers
This commit is contained in:
parent
2ef05b9aad
commit
a1cdd65e19
|
@ -44,6 +44,17 @@ void GBAVideoProxyRendererCreate(struct GBAVideoProxyRenderer* renderer, struct
|
|||
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;
|
||||
|
|
|
@ -651,6 +651,17 @@ void GBAVideoGLRendererCreate(struct GBAVideoGLRenderer* renderer) {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue