From a9a36df8167705cf774f2723027f01357466b3d5 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Tue, 21 Sep 2021 09:54:15 +0200 Subject: [PATCH] `0x25800` -> `sizeof(u16[SCREEN_HEIGHT][SCREEN_WIDTH])` --- src/code/fault.c | 2 +- src/code/fault_drawer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/code/fault.c b/src/code/fault.c index 91e5175523..a537f821e4 100644 --- a/src/code/fault.c +++ b/src/code/fault.c @@ -902,7 +902,7 @@ void Fault_CommitFB() { } else { fb = (u16*)osViGetNextFramebuffer(); if ((u32)fb == 0x80000000) { - fb = (u16*)((osMemSize | 0x80000000) - 0x25800); + fb = (u16*)((osMemSize | 0x80000000) - sizeof(u16[SCREEN_HEIGHT][SCREEN_WIDTH])); } } diff --git a/src/code/fault_drawer.c b/src/code/fault_drawer.c index 036247d8aa..d20ada8727 100644 --- a/src/code/fault_drawer.c +++ b/src/code/fault_drawer.c @@ -302,5 +302,5 @@ void FaultDrawer_WritebackFBDCache() { void FaultDrawer_SetDefault() { bcopy(&sFaultDrawerDefault, &sFaultDrawerStruct, sizeof(FaultDrawer)); - sFaultDrawerStruct.fb = (u16*)((osMemSize | 0x80000000) - 0x25800); + sFaultDrawerStruct.fb = (u16*)((osMemSize | 0x80000000) - sizeof(u16[SCREEN_HEIGHT][SCREEN_WIDTH])); }