all repos — mgba @ 36047f4c4433daafa6603c6d53989591f4544671

mGBA Game Boy Advance Emulator

Revert "GBA Video: Fix sprites in modes 3 - 5 when character mapping is disabled"

This reverts commit cd3b9cdc6b85948e299756b683f5c08fd7e098f1.
Jeffrey Pfau jeffrey@endrift.com
Wed, 29 Jul 2015 01:08:19 -0700
commit

36047f4c4433daafa6603c6d53989591f4544671

parent

5f572ffb6238881b6fda7e7531e5fd7c68c0ef6b

3 files changed, 2 insertions(+), 4 deletions(-)

jump to
M CHANGESCHANGES

@@ -64,7 +64,6 @@ - Qt: Fix window being too tall after exiting fullscreen

- Qt: Fix a missing va_end call in the log handler lambda within the GameController constructor - GBA Cheats: Fix Pro Action Replay and GameShark issues when used together - Qt: Fix analog buttons not getting unmapped - - GBA Video: Fix sprites in modes 3 - 5 when character mapping is disabled Misc: - Qt: Handle saving input settings better - Debugger: Free watchpoints in addition to breakpoints
M src/gba/renderers/software-obj.csrc/gba/renderers/software-obj.c

@@ -114,7 +114,7 @@ flags |= FLAG_TARGET_1 * ((GBAWindowControlIsBlendEnable(renderer->currentWindow.packed) && renderer->target1Obj && renderer->blendEffect == BLEND_ALPHA) || GBAObjAttributesAGetMode(sprite->a) == OBJ_MODE_SEMITRANSPARENT);

flags |= FLAG_OBJWIN * (GBAObjAttributesAGetMode(sprite->a) == OBJ_MODE_OBJWIN); int32_t x = GBAObjAttributesBGetX(sprite->b) << 23; x >>= 23; - uint16_t* vramBase = &renderer->d.vram[(GBARegisterDISPCNTGetMode(renderer->dispcnt) < 3 || GBARegisterDISPCNTIsObjCharacterMapping(renderer->dispcnt) ? BASE_TILE : BASE_TILE_BITMAP) >> 1]; + uint16_t* vramBase = &renderer->d.vram[BASE_TILE >> 1]; unsigned charBase = GBAObjAttributesCGetTile(sprite->c) * 0x20; int variant = renderer->target1Obj && GBAWindowControlIsBlendEnable(renderer->currentWindow.packed) && (renderer->blendEffect == BLEND_BRIGHTEN || renderer->blendEffect == BLEND_DARKEN); if (GBAObjAttributesAGetMode(sprite->a) == OBJ_MODE_SEMITRANSPARENT) {
M src/gba/video.hsrc/gba/video.h

@@ -40,8 +40,7 @@ VIDEO_TOTAL_LENGTH = VIDEO_HORIZONTAL_LENGTH * VIDEO_VERTICAL_TOTAL_PIXELS,

REG_DISPSTAT_MASK = 0xFF38, - BASE_TILE = 0x00010000, - BASE_TILE_BITMAP = 0x00014000 + BASE_TILE = 0x00010000 }; enum ObjMode {