DS Video: Fix extended modes 1.x screen base range (fixes #568)

This commit is contained in:
Vicki Pfau 2017-04-09 21:27:38 -07:00
parent 7c4a220bbb
commit c3a19ddb8c
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
medusa alpha 2: (Future) medusa alpha 2: (Future)
Bugfixes: Bugfixes:
- DS Video: Fix VRAM mirroring in the renderer (fixes mgba.io/i/561) - DS Video: Fix VRAM mirroring in the renderer (fixes mgba.io/i/561)
- DS Video: Fix extended modes 1.x screen base range (fixes mgba.io/i/568)
Misc: Misc:
- DS: Set boot complete bit in RAM on boot (fixes mgba.io/i/576, mgba.io/i/580, mgba.io/i/586) - DS: Set boot complete bit in RAM on boot (fixes mgba.io/i/576, mgba.io/i/580, mgba.io/i/586)

View File

@ -746,7 +746,7 @@ void DSVideoSoftwareRendererDrawBackgroundExt0(struct GBAVideoSoftwareRenderer*
void DSVideoSoftwareRendererDrawBackgroundExt1(struct GBAVideoSoftwareRenderer* renderer, struct GBAVideoSoftwareBackground* background, int inY) { void DSVideoSoftwareRendererDrawBackgroundExt1(struct GBAVideoSoftwareRenderer* renderer, struct GBAVideoSoftwareBackground* background, int inY) {
BACKGROUND_BITMAP_INIT; BACKGROUND_BITMAP_INIT;
uint32_t screenBase = (background->screenBase & 0x1F00) * 8; uint32_t screenBase = (background->screenBase & 0xFF00) * 8;
uint8_t color; uint8_t color;
int width, height; int width, height;
switch (background->size) { switch (background->size) {
@ -803,7 +803,7 @@ void DSVideoSoftwareRendererDrawBackgroundExt1(struct GBAVideoSoftwareRenderer*
void DSVideoSoftwareRendererDrawBackgroundExt2(struct GBAVideoSoftwareRenderer* renderer, struct GBAVideoSoftwareBackground* background, int inY) { void DSVideoSoftwareRendererDrawBackgroundExt2(struct GBAVideoSoftwareRenderer* renderer, struct GBAVideoSoftwareBackground* background, int inY) {
BACKGROUND_BITMAP_INIT; BACKGROUND_BITMAP_INIT;
uint32_t screenBase = (background->screenBase & 0x1F00) * 4; uint32_t screenBase = (background->screenBase & 0xFF00) * 4;
uint32_t color; uint32_t color;
int width, height; int width, height;
switch (background->size) { switch (background->size) {