Browse Source

🚸 Expand box in draw_boxed_string (#22209)

vanilla_fb_2.0.x
Cytown 4 years ago
committed by Scott Lahteine
parent
commit
e3ae76d76d
  1. 2
      Marlin/src/lcd/dogm/marlinui_DOGM.cpp

2
Marlin/src/lcd/dogm/marlinui_DOGM.cpp

@ -469,7 +469,7 @@ void MarlinUI::clear_lcd() { } // Automatically cleared by Picture Loop
const pixel_len_t bw = len * prop * (MENU_FONT_WIDTH), bx = x * prop * (MENU_FONT_WIDTH);
if (inv) {
u8g.setColorIndex(1);
u8g.drawBox(bx / prop - 1, by - (MENU_FONT_ASCENT) + 1, bw / prop + 2, MENU_FONT_HEIGHT - 1);
u8g.drawBox(bx / prop - 1, by - (MENU_FONT_ASCENT), bw + 2, MENU_FONT_HEIGHT);
u8g.setColorIndex(0);
}
lcd_put_u8str_P(bx / prop, by, pstr);

Loading…
Cancel
Save