2
CHANGES
@ -2,6 +2,8 @@
|
||||
Features:
|
||||
- Tool for converting scanned pictures of e-Reader cards to raw dotcode data
|
||||
- Cheat code support in homebrew ports
|
||||
Emulation fixes:
|
||||
- GBA Video: Revert scanline latching changes (fixes mgba.io/i/2153, mgba.io/i/2149)
|
||||
Other fixes:
|
||||
- Core: Fix memory leak in opening games from the library
|
||||
- Qt: Fix infrequent deadlock when using sync to video
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
@ -719,16 +719,16 @@ static void GBAVideoSoftwareRendererFinishFrame(struct GBAVideoRenderer* rendere
|
||||
softwareRenderer->bg[3].sy = softwareRenderer->bg[3].refy;
|
||||
|
||||
if (softwareRenderer->bg[0].enabled > 0) {
|
||||
softwareRenderer->bg[0].enabled = 3;
|
||||
softwareRenderer->bg[0].enabled = 4;
|
||||
}
|
||||
if (softwareRenderer->bg[1].enabled > 0) {
|
||||
softwareRenderer->bg[1].enabled = 3;
|
||||
softwareRenderer->bg[1].enabled = 4;
|
||||
}
|
||||
if (softwareRenderer->bg[2].enabled > 0) {
|
||||
softwareRenderer->bg[2].enabled = 3;
|
||||
softwareRenderer->bg[2].enabled = 4;
|
||||
}
|
||||
if (softwareRenderer->bg[3].enabled > 0) {
|
||||
softwareRenderer->bg[3].enabled = 3;
|
||||
softwareRenderer->bg[3].enabled = 4;
|
||||
}
|
||||
}
|
||||
|
||||
@ -755,7 +755,7 @@ static void _enableBg(struct GBAVideoSoftwareRenderer* renderer, int bg, bool ac
|
||||
} else if (!wasActive && active) {
|
||||
if (renderer->nextY == 0 || GBARegisterDISPCNTGetMode(renderer->dispcnt) > 2) {
|
||||
// TODO: Investigate in more depth how switching background works in different modes
|
||||
renderer->bg[bg].enabled = 3;
|
||||
renderer->bg[bg].enabled = 4;
|
||||
} else {
|
||||
renderer->bg[bg].enabled = 1;
|
||||
}
|
||||
@ -830,7 +830,7 @@ static void GBAVideoSoftwareRendererWriteBLDCNT(struct GBAVideoSoftwareRenderer*
|
||||
|
||||
#define TEST_LAYER_ENABLED(X) \
|
||||
!renderer->d.disableBG[X] && \
|
||||
(renderer->bg[X].enabled == 3 && \
|
||||
(renderer->bg[X].enabled == 4 && \
|
||||
(GBAWindowControlIsBg ## X ## Enable(renderer->currentWindow.packed) || \
|
||||
(GBARegisterDISPCNTIsObjwinEnable(renderer->dispcnt) && GBAWindowControlIsBg ## X ## Enable (renderer->objwin.packed))) && \
|
||||
renderer->bg[X].priority == priority)
|
||||
@ -937,19 +937,19 @@ static void _drawScanline(struct GBAVideoSoftwareRenderer* renderer, int y) {
|
||||
renderer->bg[3].sy += renderer->bg[3].dmy;
|
||||
}
|
||||
|
||||
if (renderer->bg[0].enabled > 0 && renderer->bg[0].enabled < 3) {
|
||||
if (renderer->bg[0].enabled > 0 && renderer->bg[0].enabled < 4) {
|
||||
++renderer->bg[0].enabled;
|
||||
DIRTY_SCANLINE(renderer, y);
|
||||
}
|
||||
if (renderer->bg[1].enabled > 0 && renderer->bg[1].enabled < 3) {
|
||||
if (renderer->bg[1].enabled > 0 && renderer->bg[1].enabled < 4) {
|
||||
++renderer->bg[1].enabled;
|
||||
DIRTY_SCANLINE(renderer, y);
|
||||
}
|
||||
if (renderer->bg[2].enabled > 0 && renderer->bg[2].enabled < 3) {
|
||||
if (renderer->bg[2].enabled > 0 && renderer->bg[2].enabled < 4) {
|
||||
++renderer->bg[2].enabled;
|
||||
DIRTY_SCANLINE(renderer, y);
|
||||
}
|
||||
if (renderer->bg[3].enabled > 0 && renderer->bg[3].enabled < 3) {
|
||||
if (renderer->bg[3].enabled > 0 && renderer->bg[3].enabled < 4) {
|
||||
++renderer->bg[3].enabled;
|
||||
DIRTY_SCANLINE(renderer, y);
|
||||
}
|
||||
|
@ -159,9 +159,6 @@ void _startHdraw(struct mTiming* timing, void* context, uint32_t cyclesLate) {
|
||||
video->p->memory.io[REG_VCOUNT >> 1] = video->vcount;
|
||||
|
||||
if (video->vcount < GBA_VIDEO_VERTICAL_PIXELS) {
|
||||
if (video->frameskipCounter <= 0) {
|
||||
video->renderer->drawScanline(video->renderer, video->vcount);
|
||||
}
|
||||
video->shouldStall = 1;
|
||||
}
|
||||
|
||||
@ -213,6 +210,9 @@ void _startHblank(struct mTiming* timing, void* context, uint32_t cyclesLate) {
|
||||
// Begin Hblank
|
||||
GBARegisterDISPSTAT dispstat = video->p->memory.io[REG_DISPSTAT >> 1];
|
||||
dispstat = GBARegisterDISPSTATFillInHblank(dispstat);
|
||||
if (video->vcount < GBA_VIDEO_VERTICAL_PIXELS && video->frameskipCounter <= 0) {
|
||||
video->renderer->drawScanline(video->renderer, video->vcount);
|
||||
}
|
||||
|
||||
if (video->vcount < GBA_VIDEO_VERTICAL_PIXELS) {
|
||||
GBADMARunHblank(video->p, -cyclesLate);
|
||||
|