GBA Video: Start on the scanline BIOS finishes on if no BIOS is loaded

This commit is contained in:
Jeffrey Pfau 2015-08-22 13:36:42 -07:00
parent cad90d1768
commit e9d4219d7b
2 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Bugfixes:
- 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: Window size command line options are now supported
- Qt: Increase usability of key mapper

View File

@ -62,7 +62,13 @@ void GBAVideoInit(struct GBAVideo* video) {
}
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;