mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Sleep between frames to have a constant frame rate
This commit is contained in:
parent
70e11f17e7
commit
c8157a828a
@ -229,6 +229,7 @@ void BootLogoAnimationThread()
|
||||
|
||||
free(img);
|
||||
Display->SetBuffer(1);
|
||||
TaskManager->Sleep(50);
|
||||
}
|
||||
|
||||
int brightness = 100;
|
||||
@ -237,6 +238,7 @@ void BootLogoAnimationThread()
|
||||
brightness -= 10;
|
||||
Display->SetBrightness(brightness, 1);
|
||||
Display->SetBuffer(1);
|
||||
TaskManager->Sleep(10);
|
||||
}
|
||||
}
|
||||
|
||||
@ -284,6 +286,7 @@ void ExitLogoAnimationThread()
|
||||
|
||||
free(img);
|
||||
Display->SetBuffer(1);
|
||||
TaskManager->Sleep(50);
|
||||
}
|
||||
|
||||
int brightness = 100;
|
||||
@ -292,6 +295,7 @@ void ExitLogoAnimationThread()
|
||||
brightness -= 10;
|
||||
Display->SetBrightness(brightness, 1);
|
||||
Display->SetBuffer(1);
|
||||
TaskManager->Sleep(10);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user