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 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)
|
- 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 mode 2 out-of-bounds VRAM crash
|
||||||
|
- GBA Video: Fix regression adjusting brightness of backdrop
|
||||||
Misc:
|
Misc:
|
||||||
- DS GX: Clean up and unify texture mapping
|
- DS GX: Clean up and unify texture mapping
|
||||||
- DS Core: Add symbol loading
|
- DS Core: Add symbol loading
|
||||||
|
|
|
@ -874,6 +874,11 @@ void GBAVideoSoftwareRendererPreprocessBuffer(struct GBAVideoSoftwareRenderer* s
|
||||||
|
|
||||||
GBAVideoSoftwareRendererUpdateDISPCNT(softwareRenderer);
|
GBAVideoSoftwareRendererUpdateDISPCNT(softwareRenderer);
|
||||||
|
|
||||||
|
if (softwareRenderer->blendDirty) {
|
||||||
|
_updatePalettes(softwareRenderer);
|
||||||
|
softwareRenderer->blendDirty = false;
|
||||||
|
}
|
||||||
|
|
||||||
int w;
|
int w;
|
||||||
x = 0;
|
x = 0;
|
||||||
for (w = 0; w < softwareRenderer->nWindows; ++w) {
|
for (w = 0; w < softwareRenderer->nWindows; ++w) {
|
||||||
|
@ -898,11 +903,6 @@ void GBAVideoSoftwareRendererPreprocessBuffer(struct GBAVideoSoftwareRenderer* s
|
||||||
softwareRenderer->row[x] = backdrop;
|
softwareRenderer->row[x] = backdrop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (softwareRenderer->blendDirty) {
|
|
||||||
_updatePalettes(softwareRenderer);
|
|
||||||
softwareRenderer->blendDirty = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GBAVideoSoftwareRendererPostprocessBuffer(struct GBAVideoSoftwareRenderer* softwareRenderer) {
|
void GBAVideoSoftwareRendererPostprocessBuffer(struct GBAVideoSoftwareRenderer* softwareRenderer) {
|
||||||
|
|
Loading…
Reference in New Issue