all repos — mgba @ 774b7d75bc0d4226c1b629abfd53534380912f3f

mGBA Game Boy Advance Emulator

Fix broken bitmap
Jeffrey Pfau jeffrey@endrift.com
Sun, 21 Jul 2013 19:04:24 -0700
commit

774b7d75bc0d4226c1b629abfd53534380912f3f

parent

6829b54234761ec7825d4bdb6ada96ab27331961

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/renderers/video-software.csrc/gba/renderers/video-software.c

@@ -259,7 +259,7 @@ if ((oam & 0x3) != 0x3) {

oam >>= 2; struct GBAObj* sprite = &renderer->oam->obj[oam]; int enabled = sprite->transformed || !sprite->disable; - enabled << (oam & 0x1F); + enabled <<= (oam & 0x1F); softwareRenderer->enabledBitmap[oam >> 5] = (softwareRenderer->enabledBitmap[oam >> 5] & ~(1 << (oam & 0x1F))) | enabled; } }