mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Start on the scanline BIOS finishes on if no BIOS is loaded
This commit is contained in:
parent
cad90d1768
commit
e9d4219d7b
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue