Fix backdrop flag filling
Fixes a few games (specially transitions that use backdrop effects)
This commit is contained in:
parent
2c0c8c85d7
commit
38390d4c55
1 changed files with 2 additions and 1 deletions
3
video.cc
3
video.cc
|
@ -1527,11 +1527,12 @@ static void merge_brightness(u32 start, u32 end, u16 *srcdst) {
|
||||||
template<rendtype rdmode, typename dsttype>
|
template<rendtype rdmode, typename dsttype>
|
||||||
void fill_line_background(u32 start, u32 end, dsttype *scanline) {
|
void fill_line_background(u32 start, u32 end, dsttype *scanline) {
|
||||||
dsttype bgcol = palette_ram_converted[0];
|
dsttype bgcol = palette_ram_converted[0];
|
||||||
|
u16 bg_comb = color_flags(5);
|
||||||
while (start < end)
|
while (start < end)
|
||||||
if (rdmode == FULLCOLOR)
|
if (rdmode == FULLCOLOR)
|
||||||
scanline[start++] = bgcol;
|
scanline[start++] = bgcol;
|
||||||
else
|
else
|
||||||
scanline[start++] = 0;
|
scanline[start++] = 0 | bg_comb;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Renders the backdrop color (ie. whenever no layer is active) applying
|
// Renders the backdrop color (ie. whenever no layer is active) applying
|
||||||
|
|
Loading…
Add table
Reference in a new issue