GBA: Fix timers 2 and 3 updating incorrectly

This commit is contained in:
Jeffrey Pfau 2015-01-17 02:21:49 -08:00
parent 5b1d597ce5
commit 50b3bf750e
2 changed files with 1 additions and 2 deletions

View File

@ -36,6 +36,7 @@ Bugfixes:
- GBA Video: Fix mode 0 being able to read tiles above appropriate tile range
- GBA Audio: Properly initialize audio FIFO channels
- Util: Fix SOCKET_FAILED macro
- GBA: Fix timers 2 and 3 updating incorrectly
Misc:
- Qt: Disable sync to video by default
- GBA: Exit cleanly on FATAL if the port supports it

View File

@ -349,7 +349,6 @@ static int32_t GBATimersProcessEvents(struct GBA* gba, int32_t cycles) {
if (timer->enable) {
timer->nextEvent -= cycles;
timer->lastEvent -= cycles;
nextEvent = timer->nextEvent;
if (timer->nextEvent <= 0) {
timer->lastEvent = timer->nextEvent;
timer->nextEvent += timer->overflowInterval;
@ -381,7 +380,6 @@ static int32_t GBATimersProcessEvents(struct GBA* gba, int32_t cycles) {
if (timer->enable) {
timer->nextEvent -= cycles;
timer->lastEvent -= cycles;
nextEvent = timer->nextEvent;
if (timer->nextEvent <= 0) {
timer->lastEvent = timer->nextEvent;
timer->nextEvent += timer->overflowInterval;