all repos — mgba @ 79d4011650ec05c332666bce059cb10cbaf2884e

mGBA Game Boy Advance Emulator

Initialize OAM
Jeffrey Pfau jeffrey@endrift.com
Wed, 29 Jan 2014 23:02:12 -0800
commit

79d4011650ec05c332666bce059cb10cbaf2884e

parent

13d3146d0bc5fe877207d7c9790b2ac3402fc56c

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

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

@@ -46,6 +46,11 @@ video->nextVblankIRQ = 0;

video->nextVcounterIRQ = 0; video->vram = anonymousMemoryMap(SIZE_VRAM); + + int i; + for (i = 0; i < 128; ++i) { + video->oam.obj[i].disable = 1; + } } void GBAVideoDeinit(struct GBAVideo* video) {