️ E3V2 blank bg for S1 compatibility (#23822)

This commit is contained in:
InsanityAutomation 2022-03-01 17:25:30 -05:00 committed by Scott Lahteine
parent fbfe0642b6
commit 0337602bbe
4 changed files with 6 additions and 0 deletions

View file

@ -49,6 +49,7 @@ void DWIN_Startup() {
#if DISABLED(SHOW_BOOTSCREEN) #if DISABLED(SHOW_BOOTSCREEN)
DWIN_Frame_Clear(Color_Bg_Black); // MarlinUI handles the bootscreen so just clear here DWIN_Frame_Clear(Color_Bg_Black); // MarlinUI handles the bootscreen so just clear here
#endif #endif
DWIN_JPG_ShowAndCache(3);
DWIN_UpdateLCD(); DWIN_UpdateLCD();
} }

View file

@ -4989,6 +4989,8 @@ void MarlinUI::init_lcd() {
DWIN_UpdateLCD(); DWIN_UpdateLCD();
delay(20); delay(20);
} }
DWIN_JPG_ShowAndCache(3);
DWIN_JPG_CacheTo1(Language_English); DWIN_JPG_CacheTo1(Language_English);
CrealityDWIN.Redraw_Screen(); CrealityDWIN.Redraw_Screen();
} }

View file

@ -45,6 +45,7 @@ void DWIN_Startup() {
const bool success = DWIN_Handshake(); const bool success = DWIN_Handshake();
if (success) DEBUG_ECHOLNPGM("ok."); else DEBUG_ECHOLNPGM("error."); if (success) DEBUG_ECHOLNPGM("ok."); else DEBUG_ECHOLNPGM("error.");
DWIN_Frame_SetDir(TERN(DWIN_MARLINUI_LANDSCAPE, 0, 1)); 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_Frame_Clear(Color_Bg_Black); // MarlinUI handles the bootscreen so just clear here
DWIN_UpdateLCD(); DWIN_UpdateLCD();
} }

View file

@ -1836,6 +1836,7 @@ void DWIN_Startup() {
DWINUI::onCursorErase = Erase_Menu_Cursor; DWINUI::onCursorErase = Erase_Menu_Cursor;
DWINUI::onTitleDraw = Draw_Title; DWINUI::onTitleDraw = Draw_Title;
DWINUI::onMenuDraw = Draw_Menu; DWINUI::onMenuDraw = Draw_Menu;
DWIN_JPG_ShowAndCache(3);
HMI_SetLanguage(); HMI_SetLanguage();
} }
@ -1937,6 +1938,7 @@ void DWIN_RebootScreen() {
DWINUI::Draw_CenteredString(Color_White, 220, GET_TEXT_F(MSG_PLEASE_WAIT_REBOOT)); DWINUI::Draw_CenteredString(Color_White, 220, GET_TEXT_F(MSG_PLEASE_WAIT_REBOOT));
DWIN_UpdateLCD(); DWIN_UpdateLCD();
delay(500); delay(500);
DWIN_JPG_ShowAndCache(3);
} }
void DWIN_Redraw_screen() { void DWIN_Redraw_screen() {