Fix backdrop flag filling

Fixes a few games (specially transitions that use backdrop effects)
This commit is contained in:
David Guillen Fandos 2023-08-17 22:21:37 +02:00
parent 2c0c8c85d7
commit 38390d4c55
1 changed files with 2 additions and 1 deletions

View File

@ -1527,11 +1527,12 @@ static void merge_brightness(u32 start, u32 end, u16 *srcdst) {
template<rendtype rdmode, typename dsttype>
void fill_line_background(u32 start, u32 end, dsttype *scanline) {
dsttype bgcol = palette_ram_converted[0];
u16 bg_comb = color_flags(5);
while (start < end)
if (rdmode == FULLCOLOR)
scanline[start++] = bgcol;
else
scanline[start++] = 0;
scanline[start++] = 0 | bg_comb;
}
// Renders the backdrop color (ie. whenever no layer is active) applying