Skip to content

Commit

Permalink
Update render.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FitzRoyX authored Jan 29, 2025
1 parent a644a53 commit deb3894
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ares/fc/ppu/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ auto PPU::renderPixel() -> void {
u32 objectPalette = 0;
bool objectPriority = 0;

//PAL systems blank the topmost scanline and the first and last 2px of active display
if(Region::PAL()) if(io.ly == 0 || x < 2 || x > 254) return;
//PAL systems technically blank the topmost scanline and a 2px column on each side of active display.
//This does little else but crop good tiledata and mismatch screenshots with ntsc.
//Uncomment the line below to enable.
//if(Region::PAL()) if(io.ly == 0 || x < 2 || x > 253) return;

palette |= latch.tiledataLo & mask ? 1 : 0;
palette |= latch.tiledataHi & mask ? 2 : 0;
Expand Down

0 comments on commit deb3894

Please sign in to comment.