Skip to content

Commit

Permalink
Smooth X scrolling activated
Browse files Browse the repository at this point in the history
  • Loading branch information
amhndu committed Sep 10, 2016
1 parent 90d8fe4 commit e868141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace sn
Byte tile = read(addr);

//fetch pattern
auto x_fine = (/*m_fineXScroll*/ + x) % 8;
auto x_fine = (m_fineXScroll + x) % 8;
//Each pattern occupies 16 bytes, so multiply by 16
addr = (tile * 16) + ((m_dataAddress >> 12) & 0x7); //Add fine y
addr |= m_bgPage << 12; //set whether the pattern is in the high or low page
Expand Down

0 comments on commit e868141

Please sign in to comment.