Skip to content

Commit

Permalink
GBA: Fixed inverted transform x/y update flags
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed Mar 30, 2024
1 parent d5e4968 commit 2f08c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/GBA/GbaPpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ void GbaPpu::ProcessEndOfScanline()

for(int i = 0; i < 2; i++) {
if(_state.Transform[i].PendingUpdateX) {
_state.Transform[i].LatchOriginY = (_state.Transform[i].OriginY << 4) >> 4; //sign extend
_state.Transform[i].LatchOriginX = (_state.Transform[i].OriginX << 4) >> 4; //sign extend
_state.Transform[i].PendingUpdateX = false;
}
if(_state.Transform[i].PendingUpdateY) {
_state.Transform[i].LatchOriginX = (_state.Transform[i].OriginX << 4) >> 4; //sign extend
_state.Transform[i].LatchOriginY = (_state.Transform[i].OriginY << 4) >> 4; //sign extend
_state.Transform[i].PendingUpdateY = false;
}
}
Expand Down

0 comments on commit 2f08c98

Please sign in to comment.