Browse Source

🚸 Expand box in draw_boxed_string (#22209)

Cytown 4 years ago
parent
commit
5ceeb8b5ff
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/lcd/dogm/marlinui_DOGM.cpp

+ 1
- 1
Marlin/src/lcd/dogm/marlinui_DOGM.cpp View File

468
     const pixel_len_t bw = len * prop * (MENU_FONT_WIDTH), bx = x * prop * (MENU_FONT_WIDTH);
468
     const pixel_len_t bw = len * prop * (MENU_FONT_WIDTH), bx = x * prop * (MENU_FONT_WIDTH);
469
     if (inv) {
469
     if (inv) {
470
       u8g.setColorIndex(1);
470
       u8g.setColorIndex(1);
471
-      u8g.drawBox(bx / prop - 1, by - (MENU_FONT_ASCENT) + 1, bw / prop + 2, MENU_FONT_HEIGHT - 1);
471
+      u8g.drawBox(bx / prop - 1, by - (MENU_FONT_ASCENT), bw + 2, MENU_FONT_HEIGHT);
472
       u8g.setColorIndex(0);
472
       u8g.setColorIndex(0);
473
     }
473
     }
474
     lcd_put_u8str_P(bx / prop, by, pstr);
474
     lcd_put_u8str_P(bx / prop, by, pstr);

Loading…
Cancel
Save