Skip to content

Commit

Permalink
PCE: Fixed SuperGrafx layering problem
Browse files Browse the repository at this point in the history
When VDC1 had both BG and sprites disabled, it blocked the VDC2's background (resulting in a black screen). VDC1's output should count as transparent in this scenario
  • Loading branch information
SourMesen committed Dec 11, 2024
1 parent 75b667d commit 604f1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/PCE/PceVdc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,15 +920,15 @@ void PceVdc::InternalDrawScanline()
uint16_t color = _vce->GetPalette(0);
for(; xStart < xMax; xStart++) {
//In picture, but BG is not enabled, draw bg color
out[xStart] = color;
out[xStart] = PceVpc::TransparentPixelFlag | color;
}
}
} else {
if constexpr(!skipRender) {
uint16_t color = _vce->GetPalette(16 * 16);
for(; xStart < xMax; xStart++) {
//Output hasn't started yet, display overscan color
out[xStart] = color;
out[xStart] = PceVpc::TransparentPixelFlag | color;
}
}
}
Expand Down

0 comments on commit 604f1a6

Please sign in to comment.