Initialize OAM

This commit is contained in:
Jeffrey Pfau 2014-01-29 23:02:12 -08:00
parent 13d3146d0b
commit 79d4011650
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ void GBAVideoInit(struct GBAVideo* video) {
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) {