all repos — mgba @ f31d3c1443334d0fb1657f304239d621274cfe26

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

f31d3c1443334d0fb1657f304239d621274cfe26

parent

f97e697a22af0ca27481b0c52aac8ff7e32c8637

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: Remove useless help icons in dialogs
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;