From e8681415214e4d464fe2c0e1acd8372740def6ef Mon Sep 17 00:00:00 2001 From: Amish Naidu Date: Sat, 10 Sep 2016 22:19:20 +0530 Subject: [PATCH] Smooth X scrolling activated --- src/PPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PPU.cpp b/src/PPU.cpp index 56b3ed8..31c60e6 100644 --- a/src/PPU.cpp +++ b/src/PPU.cpp @@ -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