From a1cdd65e19e73e4ddfbd828582f83d6fb0c48fe0 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 3 Jun 2019 11:46:57 -0700 Subject: [PATCH] GBA Video: Add missing initializers --- src/gba/extra/proxy.c | 11 +++++++++++ src/gba/renderers/gl.c | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/gba/extra/proxy.c b/src/gba/extra/proxy.c index 6121f4f99..196329036 100644 --- a/src/gba/extra/proxy.c +++ b/src/gba/extra/proxy.c @@ -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; diff --git a/src/gba/renderers/gl.c b/src/gba/renderers/gl.c index 97acc8e02..952467eea 100644 --- a/src/gba/renderers/gl.c +++ b/src/gba/renderers/gl.c @@ -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; }