Skip to content

Commit

Permalink
sfc: fix screen offset after line-doubling work
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Jan 29, 2025
1 parent 928d76b commit 76ab41c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ares/sfc/ppu-performance/ppu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ auto PPU::main() -> void {
screen->setViewport(0, 0, 564, height() * yScale);
} else {
int x = 26;
int y = 18;
int y = 9 * yScale;
int w = 564 - 52;
int h = height() - 18;

if(Region::PAL()) {
x -= 4;
y += 24;
y += 12 * yScale;
h -= 31;

if(!io.overscan) {
y += 16;
y += 8 * yScale;
h -= 15;
}
}
Expand Down
6 changes: 3 additions & 3 deletions ares/sfc/ppu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ auto PPU::main() -> void {
screen->setViewport(0, 0, 564, height() * yScale);
} else {
int x = 26;
int y = 18;
int y = 9 * yScale;
int w = 564 - 52;
int h = height() - 18;

if(Region::PAL()) {
x -= 4;
y += 24;
y += 12 * yScale;
h -= 31;

if(!io.overscan) {
y += 16;
y += 8 * yScale;
h -= 15;
}
}
Expand Down

0 comments on commit 76ab41c

Please sign in to comment.