GBA Video: Start on the scanline BIOS finishes on if no BIOS is loaded
Jeffrey Pfau jeffrey@endrift.com
Sat, 22 Aug 2015 13:36:42 -0700
2 files changed,
8 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -4,6 +4,7 @@ - Qt: Windows no longer spawn in the top left on first launch
- Qt: Fix install path of XDG desktop file with DESTDIR - Qt: Fix drag and drop on Windows - Qt: Reenable double buffering, as disabling it broke some Windows configs + - GBA Video: Start on the scanline BIOS finishes on if no BIOS is loaded Misc: - Qt: Remove useless help icons in dialogs
M
src/gba/video.c
→
src/gba/video.c
@@ -62,7 +62,13 @@ video->vram = 0;
} void GBAVideoReset(struct GBAVideo* video) { - video->vcount = VIDEO_VERTICAL_TOTAL_PIXELS - 1; + if (video->p->memory.fullBios) { + video->vcount = 0; + } else { + // TODO: Verify exact scanline hardware + video->vcount = 0x7E; + } + video->p->memory.io[REG_VCOUNT >> 1] = video->vcount; video->lastHblank = 0; video->nextHblank = VIDEO_HDRAW_LENGTH;