Initialize OAM
Jeffrey Pfau jeffrey@endrift.com
Wed, 29 Jan 2014 23:02:12 -0800
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/gba/gba-video.c
→
src/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) {