resync to scxreader.

git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@57 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
This commit is contained in:
sinamas 2007-09-03 10:31:33 +00:00
parent 93c12bf0e2
commit bb84c6d628

View File

@ -54,7 +54,8 @@ public:
void reset(); void reset();
void schedule(const LyCounter &lyCounter, const unsigned cycleCounter) { void schedule(const LyCounter &lyCounter, const unsigned cycleCounter) {
setTime(lyCounter.nextLineCycle(84 + lyCounter.isDoubleSpeed() * 2, cycleCounter)); // synced to scxReader.
setTime(lyCounter.nextLineCycle(82 + lyCounter.isDoubleSpeed() * 3, cycleCounter));
} }
void setCgb(const bool cgb_in) { void setCgb(const bool cgb_in) {
@ -62,7 +63,7 @@ public:
} }
void setDoubleSpeed(const bool dS) { void setDoubleSpeed(const bool dS) {
timeDiff = dS ? 86 * 2 - 40 : (84 - 16); timeDiff = dS ? 85 * 2 - 40 : (82 - 16);
} }
const uint16_t * spriteMap() const { const uint16_t * spriteMap() const {