mirror of
https://github.com/libretro/mgba.git
synced 2024-11-27 18:20:33 +00:00
GBA: Fix timers 2 and 3 updating incorrectly
This commit is contained in:
parent
56d5fb579d
commit
b66ce64c47
1
CHANGES
1
CHANGES
@ -62,6 +62,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
|
||||
|
@ -276,7 +276,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;
|
||||
@ -308,7 +307,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;
|
||||
|
Loading…
Reference in New Issue
Block a user