1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Fix big edit font width calculation

Fix #9685
This commit is contained in:
Scott Lahteine 2018-02-20 06:45:11 -06:00
parent 4303f2e377
commit 9f0907d40c

View File

@ -937,7 +937,7 @@ static void lcd_implementation_status_screen() {
uint8_t rows = (labellen > LCD_WIDTH - 2 - vallen) ? 2 : 1;
#if ENABLED(USE_BIG_EDIT_FONT)
constexpr uint8_t lcd_width_edit = (LCD_WIDTH) / (DOG_CHAR_WIDTH_EDIT);
constexpr uint8_t lcd_width_edit = (LCD_PIXEL_WIDTH) / (DOG_CHAR_WIDTH_EDIT);
uint8_t lcd_width, char_width;
if (labellen <= lcd_width_edit - 1) {