Skip to content

Commit 7afb220

Browse files
InsanityAutomationLCh-77
authored andcommitted
🩹 Fix and clean up E3V2 draw (MarlinFirmware#24013)
1 parent ece3098 commit 7afb220

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Marlin/src/lcd/e3v2/common/dwin_api.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ void DWIN_Frame_AreaMove(uint8_t mode, uint8_t dir, uint16_t dis,
235235
// rlimit: To limit the drawn string length
236236
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*/) {
237237
DWIN_Draw_Rectangle(1, bColor, x, y, x + (fontWidth(size) * strlen_P(string)), y + fontHeight(size));
238-
DWIN_UpdateLCD();
239238
constexpr uint8_t widthAdjust = 0;
240239
size_t i = 0;
241240
DWIN_Byte(i, 0x11);
@@ -250,7 +249,6 @@ void DWIN_Draw_String(bool bShow, uint8_t size, uint16_t color, uint16_t bColor,
250249
DWIN_Word(i, y);
251250
DWIN_Text(i, string, rlimit);
252251
DWIN_Send(i);
253-
DWIN_UpdateLCD();
254252
}
255253

256254
// Draw a positive integer
@@ -297,7 +295,6 @@ void DWIN_Draw_IntValue(uint8_t bShow, bool zeroFill, uint8_t zeroMode, uint8_t
297295
#endif
298296

299297
DWIN_Send(i);
300-
DWIN_UpdateLCD();
301298
}
302299

303300
// Draw a floating point number
@@ -332,7 +329,6 @@ void DWIN_Draw_FloatValue(uint8_t bShow, bool zeroFill, uint8_t zeroMode, uint8_
332329
DWIN_Byte(i, fvalue[0]);
333330
*/
334331
DWIN_Send(i);
335-
DWIN_UpdateLCD();
336332
}
337333

338334
// Draw a floating point number

Marlin/src/lcd/e3v2/marlinui/ui_common.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ void MarlinUI::draw_status_message(const bool blink) {
181181
dwin_font.solid = true;
182182
dwin_font.fg = Color_White;
183183
dwin_font.bg = Color_Bg_Black;
184-
DWIN_Draw_Box(1, Color_Bg_Black, 0, (LCD_PIXEL_HEIGHT - (STAT_FONT_HEIGHT) - 1), 272, STAT_FONT_HEIGHT + 1);
185184
lcd_moveto_xy(0, LCD_PIXEL_HEIGHT - (STAT_FONT_HEIGHT) - 1);
186185

187186
constexpr uint8_t max_status_chars = (LCD_PIXEL_WIDTH) / (STAT_FONT_WIDTH);

0 commit comments

Comments
 (0)