Fix marlinUI V2 display bootscreen reloading cached BG

This commit is contained in:
InsanityAutomation
2022-03-25 16:39:46 -04:00
parent 123086d14c
commit 61c3d122c9
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1398,7 +1398,7 @@
#endif
#endif
#if NONE(MachineCR10Orig, LowMemoryBoard, SKRMiniE3V2)
#if NONE(MachineCR10Orig, LowMemoryBoard, SKRMiniE3V2, MachineEnder3V2)
// Scroll a longer status message into view
#define STATUS_MESSAGE_SCROLLING
#endif
+1 -1
View File
@@ -45,9 +45,9 @@ void DWIN_Startup() {
const bool success = DWIN_Handshake();
if (success) DEBUG_ECHOLNPGM("ok."); else DEBUG_ECHOLNPGM("error.");
DWIN_Frame_SetDir(TERN(DWIN_MARLINUI_LANDSCAPE, 0, 1));
DWIN_JPG_ShowAndCache(3);
DWIN_Frame_Clear(Color_Bg_Black); // MarlinUI handles the bootscreen so just clear here
DWIN_UpdateLCD();
DWIN_JPG_ShowAndCache(3);
}
/*---------------------------------------- Picture related functions ----------------------------------------*/
@@ -122,6 +122,7 @@ void MarlinUI::clear_lcd() {
void MarlinUI::bootscreen_completion(const millis_t sofar) {
if ((BOOTSCREEN_TIMEOUT) > sofar) safe_delay((BOOTSCREEN_TIMEOUT) - sofar);
DWIN_JPG_ShowAndCache(3);
clear_lcd();
}