🩹 Ender 3v2 DWIN MarlinUI Fixup (#24984)
This commit is contained in:
parent
0fadb56150
commit
c3090bd4e8
@ -234,7 +234,7 @@ void DWIN_Frame_AreaMove(uint8_t mode, uint8_t dir, uint16_t dis,
|
|||||||
// *string: The string
|
// *string: The string
|
||||||
// rlimit: To limit the drawn string length
|
// rlimit: To limit the drawn string length
|
||||||
void DWIN_Draw_String(bool bShow, uint8_t size, uint16_t color, uint16_t bColor, uint16_t x, uint16_t y, const char * const string, uint16_t rlimit/*=0xFFFF*/) {
|
void DWIN_Draw_String(bool bShow, uint8_t size, uint16_t color, uint16_t bColor, uint16_t x, uint16_t y, const char * const string, uint16_t rlimit/*=0xFFFF*/) {
|
||||||
#if NONE(DWIN_LCD_PROUI, DWIN_CREALITY_LCD_JYERSUI)
|
#if NONE(DWIN_LCD_PROUI, DWIN_CREALITY_LCD_JYERSUI, IS_DWIN_MARLINUI)
|
||||||
DWIN_Draw_Rectangle(1, bColor, x, y, x + (fontWidth(size) * strlen_P(string)), y + fontHeight(size));
|
DWIN_Draw_Rectangle(1, bColor, x, y, x + (fontWidth(size) * strlen_P(string)), y + fontHeight(size));
|
||||||
#endif
|
#endif
|
||||||
constexpr uint8_t widthAdjust = 0;
|
constexpr uint8_t widthAdjust = 0;
|
||||||
|
@ -453,7 +453,7 @@ void MarlinUI::draw_status_screen() {
|
|||||||
DWIN_Draw_String(
|
DWIN_Draw_String(
|
||||||
false, font16x32, Percent_Color, Color_Bg_Black,
|
false, font16x32, Percent_Color, Color_Bg_Black,
|
||||||
pb_left + (pb_width - dwin_string.length * 16) / 2,
|
pb_left + (pb_width - dwin_string.length * 16) / 2,
|
||||||
pb_top + (pb_height - 32) / 2,
|
pb_top + (pb_height - 32) / 2 - 1,
|
||||||
S(dwin_string.string())
|
S(dwin_string.string())
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user