mirror of https://github.com/mgba-emu/mgba.git
Initialize OAM
This commit is contained in:
parent
13d3146d0b
commit
79d4011650
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue