GBA Video: Fix regression adjusting brightness of backdrop
Vicki Pfau vi@endrift.com
Fri, 17 Jul 2020 21:21:41 -0700
2 files changed,
6 insertions(+),
5 deletions(-)
M
CHANGES
→
CHANGES
@@ -14,6 +14,7 @@ - DS Video: Fix 2D/3D blending alpha values
- DS I/O: Enable POWCNT1 bit 1 at boot (fixes mgba.io/i/616) - DS Slot-1: Reply to IR 0x08 command properly (fixes mgba.io/i/666) - GBA Video: Fix mode 2 out-of-bounds VRAM crash + - GBA Video: Fix regression adjusting brightness of backdrop Misc: - DS GX: Clean up and unify texture mapping - DS Core: Add symbol loading
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -874,6 +874,11 @@ }
GBAVideoSoftwareRendererUpdateDISPCNT(softwareRenderer); + if (softwareRenderer->blendDirty) { + _updatePalettes(softwareRenderer); + softwareRenderer->blendDirty = false; + } + int w; x = 0; for (w = 0; w < softwareRenderer->nWindows; ++w) {@@ -897,11 +902,6 @@ }
for (; x < end; ++x) { softwareRenderer->row[x] = backdrop; } - } - - if (softwareRenderer->blendDirty) { - _updatePalettes(softwareRenderer); - softwareRenderer->blendDirty = false; } }