Fix broken bitmap
Jeffrey Pfau jeffrey@endrift.com
Sun, 21 Jul 2013 19:04:24 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/gba/renderers/video-software.c
→
src/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; } }