diff --git a/libgambatte/src/video.cpp b/libgambatte/src/video.cpp index 81f6b1e7c5..8ee04ca71e 100644 --- a/libgambatte/src/video.cpp +++ b/libgambatte/src/video.cpp @@ -291,11 +291,13 @@ bool LCD::vramReadable(unsigned long const cc) { } bool LCD::vramExactlyReadable(unsigned long const cc) { - bool vramAlreadyExactlyRead = vramHasBeenExactlyRead; + if (vramHasBeenExactlyRead) { + return false; + } if ((cc + 2 + isDoubleSpeed() > m0TimeOfCurrentLine(cc)) && (cc + 2 + isDoubleSpeed() < m0TimeOfCurrentLine(cc) + 4)) { vramHasBeenExactlyRead = true; } - return !vramAlreadyExactlyRead && (cc + 2 + isDoubleSpeed() == m0TimeOfCurrentLine(cc)); + return cc + 2 + isDoubleSpeed() == m0TimeOfCurrentLine(cc); } bool LCD::vramWritable(unsigned long const cc) { diff --git a/output/dll/libgambatte.dll b/output/dll/libgambatte.dll index 0b59bfa93c..dd6afb6089 100644 Binary files a/output/dll/libgambatte.dll and b/output/dll/libgambatte.dll differ