Permalink
Browse files

GBA Video: Don't update background scanline params in mode 0 (fixes #377

)
  • Loading branch information...
endrift committed Apr 21, 2017
1 parent 10e7501 commit e9baf497443ad466d5c74550500ce2f5708df6a4
Showing with 7 additions and 4 deletions.
  1. +1 −0 CHANGES
  2. +6 −4 src/gba/renderers/video-software.c
View
@@ -21,6 +21,7 @@ Bugfixes:
- Qt: Fix crash when changing audio settings after a game is closed
- GBA BIOS: Fix ArcTan sign in HLE BIOS
- GBA BIOS: Fix ArcTan2 sign in HLE BIOS (fixes mgba.io/i/689)
- GBA Video: Don't update background scanline params in mode 0 (fixes mgba.io/i/377)
Misc:
- Qt: Improved HiDPI support
- Feature: Support ImageMagick 7
@@ -820,10 +820,12 @@ static void _drawScanline(struct GBAVideoSoftwareRenderer* renderer, int y) {
}
}
}
renderer->bg[2].sx += renderer->bg[2].dmx;
renderer->bg[2].sy += renderer->bg[2].dmy;
renderer->bg[3].sx += renderer->bg[3].dmx;
renderer->bg[3].sy += renderer->bg[3].dmy;
if (GBARegisterDISPCNTGetMode(renderer->dispcnt) != 0) {
renderer->bg[2].sx += renderer->bg[2].dmx;
renderer->bg[2].sy += renderer->bg[2].dmy;
renderer->bg[3].sx += renderer->bg[3].dmx;
renderer->bg[3].sy += renderer->bg[3].dmy;
}
}
static void _updatePalettes(struct GBAVideoSoftwareRenderer* renderer) {

0 comments on commit e9baf49

Please sign in to comment.