From 9273a88db7744f3c71d85b00dd6e6a21f5b838de Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Sun, 9 Jul 2017 19:21:12 +0200 Subject: [PATCH] It seems FB setup needs to be done first --- source/screen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/screen.c b/source/screen.c index 86ab666..75a4a66 100644 --- a/source/screen.c +++ b/source/screen.c @@ -96,6 +96,9 @@ void initScreens(void) if(needToSetup) { + memcpy((void *)ARM11_PARAMETERS_ADDRESS, fbs, sizeof(fbs)); + invokeArm11Function(SETUP_FRAMEBUFFERS); + if(!ARESCREENSINITIALIZED) { *(vu32 *)ARM11_PARAMETERS_ADDRESS = brightness[MULTICONFIG(BRIGHTNESS)]; @@ -106,8 +109,6 @@ void initScreens(void) } else updateBrightness(MULTICONFIG(BRIGHTNESS)); - memcpy((void *)ARM11_PARAMETERS_ADDRESS, fbs, sizeof(fbs)); - invokeArm11Function(SETUP_FRAMEBUFFERS); clearScreens(true); needToSetup = false; }