1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-01-15 12:47:04 +00:00

0x25800 -> sizeof(u16[SCREEN_HEIGHT][SCREEN_WIDTH])

This commit is contained in:
Dragorn421 2021-09-21 09:54:15 +02:00
parent 730687d5d3
commit a9a36df816
No known key found for this signature in database
GPG key ID: C182A3A3996E8201
2 changed files with 2 additions and 2 deletions

View file

@ -902,7 +902,7 @@ void Fault_CommitFB() {
} else { } else {
fb = (u16*)osViGetNextFramebuffer(); fb = (u16*)osViGetNextFramebuffer();
if ((u32)fb == 0x80000000) { if ((u32)fb == 0x80000000) {
fb = (u16*)((osMemSize | 0x80000000) - 0x25800); fb = (u16*)((osMemSize | 0x80000000) - sizeof(u16[SCREEN_HEIGHT][SCREEN_WIDTH]));
} }
} }

View file

@ -302,5 +302,5 @@ void FaultDrawer_WritebackFBDCache() {
void FaultDrawer_SetDefault() { void FaultDrawer_SetDefault() {
bcopy(&sFaultDrawerDefault, &sFaultDrawerStruct, sizeof(FaultDrawer)); bcopy(&sFaultDrawerDefault, &sFaultDrawerStruct, sizeof(FaultDrawer));
sFaultDrawerStruct.fb = (u16*)((osMemSize | 0x80000000) - 0x25800); sFaultDrawerStruct.fb = (u16*)((osMemSize | 0x80000000) - sizeof(u16[SCREEN_HEIGHT][SCREEN_WIDTH]));
} }