Skip to content

Commit 4528fde

Browse files
committed
🔧 Apply bootscreen settings to ProUI
1 parent 97d8a68 commit 4528fde

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

Marlin/src/lcd/e3v2/proui/dwin.cpp

+13-8
Original file line numberDiff line numberDiff line change
@@ -1225,14 +1225,19 @@ void HMI_WaitForUser() {
12251225
}
12261226

12271227
void HMI_Init() {
1228-
DWINUI::Draw_Box(1, Color_Black, { 5, 220, DWIN_WIDTH - 5, DWINUI::fontHeight() });
1229-
DWINUI::Draw_CenteredString(Color_White, 220, F("Professional Firmware "));
1230-
for (uint16_t t = 15; t <= 257; t += 10) {
1231-
DWINUI::Draw_Icon(ICON_Bar, 15, 260);
1232-
DWIN_Draw_Rectangle(1, HMI_data.Background_Color, t, 260, 257, 280);
1233-
DWIN_UpdateLCD();
1234-
delay(50);
1235-
}
1228+
#if ENABLED(SHOW_BOOTSCREEN)
1229+
#ifndef BOOTSCREEN_TIMEOUT
1230+
#define BOOTSCREEN_TIMEOUT 1100
1231+
#endif
1232+
DWINUI::Draw_Box(1, Color_Black, { 5, 220, DWIN_WIDTH - 5, DWINUI::fontHeight() });
1233+
DWINUI::Draw_CenteredString(Color_White, 220, F("Professional Firmware "));
1234+
for (uint16_t t = 15; t < 257; t += 11) {
1235+
DWINUI::Draw_Icon(ICON_Bar, 15, 260);
1236+
DWIN_Draw_Rectangle(1, HMI_data.Background_Color, t, 260, 257, 280);
1237+
DWIN_UpdateLCD();
1238+
delay((BOOTSCREEN_TIMEOUT) / 22);
1239+
}
1240+
#endif
12361241
HMI_SetLanguage();
12371242
}
12381243

0 commit comments

Comments
 (0)