It seems FB setup needs to be done first

This commit is contained in:
Aurora Wright 2017-07-09 19:21:12 +02:00
parent 37ba2c15de
commit 9273a88db7

View File

@ -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;
}