Browse Source

🩹 Fix and clean up E3V2 draw (#24013)

InsanityAutomation 2 years ago
parent
commit
02f5e2de9c
No account linked to committer's email address

+ 0
- 4
Marlin/src/lcd/e3v2/common/dwin_api.cpp View File

@@ -235,7 +235,6 @@ void DWIN_Frame_AreaMove(uint8_t mode, uint8_t dir, uint16_t dis,
235 235
 //  rlimit: To limit the drawn string length
236 236
 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*/) {
237 237
   DWIN_Draw_Rectangle(1, bColor, x, y, x + (fontWidth(size) * strlen_P(string)), y + fontHeight(size));
238
-  DWIN_UpdateLCD();
239 238
   constexpr uint8_t widthAdjust = 0;
240 239
   size_t i = 0;
241 240
   DWIN_Byte(i, 0x11);
@@ -250,7 +249,6 @@ void DWIN_Draw_String(bool bShow, uint8_t size, uint16_t color, uint16_t bColor,
250 249
   DWIN_Word(i, y);
251 250
   DWIN_Text(i, string, rlimit);
252 251
   DWIN_Send(i);
253
-  DWIN_UpdateLCD();
254 252
 }
255 253
 
256 254
 // Draw a positive integer
@@ -297,7 +295,6 @@ void DWIN_Draw_IntValue(uint8_t bShow, bool zeroFill, uint8_t zeroMode, uint8_t
297 295
   #endif
298 296
 
299 297
   DWIN_Send(i);
300
-  DWIN_UpdateLCD();
301 298
 }
302 299
 
303 300
 // Draw a floating point number
@@ -332,7 +329,6 @@ void DWIN_Draw_FloatValue(uint8_t bShow, bool zeroFill, uint8_t zeroMode, uint8_
332 329
   DWIN_Byte(i, fvalue[0]);
333 330
   */
334 331
   DWIN_Send(i);
335
-  DWIN_UpdateLCD();
336 332
 }
337 333
 
338 334
 // Draw a floating point number

+ 0
- 1
Marlin/src/lcd/e3v2/marlinui/ui_common.cpp View File

@@ -181,7 +181,6 @@ void MarlinUI::draw_status_message(const bool blink) {
181 181
   dwin_font.solid = true;
182 182
   dwin_font.fg = Color_White;
183 183
   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);
185 184
   lcd_moveto_xy(0, LCD_PIXEL_HEIGHT - (STAT_FONT_HEIGHT) - 1);
186 185
 
187 186
   constexpr uint8_t max_status_chars = (LCD_PIXEL_WIDTH) / (STAT_FONT_WIDTH);

Loading…
Cancel
Save