PPU: Apply windows to mode 7
This commit is contained in:
parent
664c984a9d
commit
e34a1c81cd
1 changed files with 6 additions and 0 deletions
|
@ -838,6 +838,7 @@ void Ppu::RenderTilemapMode7()
|
|||
lutY[x] = lutY[x - 1] + _mode7.Matrix[2];
|
||||
}
|
||||
|
||||
uint8_t activeWindowCount = (uint8_t)_window[0].ActiveLayers[layerIndex] + (uint8_t)_window[1].ActiveLayers[layerIndex];
|
||||
uint8_t pixelFlags = PixelFlags::Filled | (((_colorMathEnabled >> layerIndex) & 0x01) ? PixelFlags::AllowColorMath : 0);
|
||||
|
||||
for(int x = _drawStartX; x <= _drawEndX; x++) {
|
||||
|
@ -853,6 +854,11 @@ void Ppu::RenderTilemapMode7()
|
|||
}
|
||||
}
|
||||
|
||||
if(activeWindowCount && ProcessMaskWindow<layerIndex>(activeWindowCount, x)) {
|
||||
//This pixel was masked, skip it
|
||||
continue;
|
||||
}
|
||||
|
||||
int32_t xOffset = (lutX[realX] >> 8);
|
||||
int32_t yOffset = (lutY[realX] >> 8);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue