1
0
forked from me/IronOS

solves artifacts issue if .gif is exactly 1024 B (#1362)

* solves artifacts issue if .gif is exactly 1024 B

solves https://github.com/Ralim/IronOS-Meta/issues/18

* increased animation speed a tad
This commit is contained in:
discip
2022-08-10 02:16:05 +02:00
committed by GitHub
parent 185516b238
commit e43449011e

View File

@@ -52,10 +52,10 @@ void BootLogo::showNewFormat(const uint8_t *ptrLogoArea) {
buttons = getButtonState();
if (interFrameDelay) {
osDelay(interFrameDelay * 5);
osDelay(interFrameDelay * 4);
}
// 1024 less the header type byte and the inter-frame-delay
if (getSettingValue(SettingsOptions::LOGOTime) > 0 && (position == 1022 || len == 0)) {
if (getSettingValue(SettingsOptions::LOGOTime) > 0 && (position >= 1022 || len == 0)) {
// Delay here until button is pressed or its been the amount of seconds set by the user
delay();
return;