all repos — mgba @ 34c904fbd0ec1b65f92f863abd56dee2382fc86d

mGBA Game Boy Advance Emulator

GBA Video: Fix regression adjusting brightness of backdrop
Vicki Pfau vi@endrift.com
Fri, 17 Jul 2020 21:21:41 -0700
commit

34c904fbd0ec1b65f92f863abd56dee2382fc86d

parent

6549da44907e2960e46178b8a208a8986aa795f0

2 files changed, 6 insertions(+), 5 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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; } }