all repos — mgba @ e9d4219d7b691e01df9f50b128f6de56fa82d57a

mGBA Game Boy Advance Emulator

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
commit

e9d4219d7b691e01df9f50b128f6de56fa82d57a

parent

cad90d17688401e13de611d1c1fdc4ad0e97325f

2 files changed, 8 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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: Window size command line options are now supported - Qt: Increase usability of key mapper
M src/gba/video.csrc/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;