From e36f3c8211d6b10dbbd3e6c123773bc3b387cee8 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 11 Aug 2015 01:14:40 -0700 Subject: [PATCH] GBA Video: Fix timing on first scanline --- CHANGES | 1 + src/gba/video.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 33d9f2668..e3fde14ff 100644 --- a/CHANGES +++ b/CHANGES @@ -70,6 +70,7 @@ Bugfixes: - GBA Video: Prevent tiles < 512 from being used in modes 3 - 5 - Qt: Fix passing command line options - Qt: Fix crashes on Windows by using using QMetaObject to do cross-thread calls + - GBA Video: Fix timing on first scanline Misc: - Qt: Handle saving input settings better - Debugger: Free watchpoints in addition to breakpoints diff --git a/src/gba/video.c b/src/gba/video.c index 39856c2a9..fef6e1b54 100644 --- a/src/gba/video.c +++ b/src/gba/video.c @@ -67,7 +67,7 @@ void GBAVideoReset(struct GBAVideo* video) { video->lastHblank = 0; video->nextHblank = VIDEO_HDRAW_LENGTH; video->nextEvent = video->nextHblank; - video->eventDiff = video->nextEvent; + video->eventDiff = 0; video->nextHblankIRQ = 0; video->nextVblankIRQ = 0;