mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix regression adjusting brightness of backdrop
This commit is contained in:
parent
6549da4490
commit
34c904fbd0
1
CHANGES
1
CHANGES
|
@ -14,6 +14,7 @@ Bugfixes:
|
|||
- 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
|
||||
|
|
|
@ -874,6 +874,11 @@ void GBAVideoSoftwareRendererPreprocessBuffer(struct GBAVideoSoftwareRenderer* s
|
|||
|
||||
GBAVideoSoftwareRendererUpdateDISPCNT(softwareRenderer);
|
||||
|
||||
if (softwareRenderer->blendDirty) {
|
||||
_updatePalettes(softwareRenderer);
|
||||
softwareRenderer->blendDirty = false;
|
||||
}
|
||||
|
||||
int w;
|
||||
x = 0;
|
||||
for (w = 0; w < softwareRenderer->nWindows; ++w) {
|
||||
|
@ -898,11 +903,6 @@ void GBAVideoSoftwareRendererPreprocessBuffer(struct GBAVideoSoftwareRenderer* s
|
|||
softwareRenderer->row[x] = backdrop;
|
||||
}
|
||||
}
|
||||
|
||||
if (softwareRenderer->blendDirty) {
|
||||
_updatePalettes(softwareRenderer);
|
||||
softwareRenderer->blendDirty = false;
|
||||
}
|
||||
}
|
||||
|
||||
void GBAVideoSoftwareRendererPostprocessBuffer(struct GBAVideoSoftwareRenderer* softwareRenderer) {
|
||||
|
|
Loading…
Reference in New Issue