Browse Source

Space out multiple edit lines a bit

Scott Lahteine 5 years ago
parent
commit
01b5c810d5
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/lcd/dogm/ultralcd_DOGM.cpp

+ 2
- 2
Marlin/src/lcd/dogm/ultralcd_DOGM.cpp View File

362
     #endif
362
     #endif
363
 
363
 
364
     // Center the label and value lines on the middle line
364
     // Center the label and value lines on the middle line
365
-    uint8_t baseline = extra_row ? (LCD_PIXEL_HEIGHT) / 2
365
+    uint8_t baseline = extra_row ? (LCD_PIXEL_HEIGHT) / 2 - 1
366
                                  : (LCD_PIXEL_HEIGHT + EDIT_FONT_ASCENT) / 2;
366
                                  : (LCD_PIXEL_HEIGHT + EDIT_FONT_ASCENT) / 2;
367
 
367
 
368
     // Assume the label is alpha-numeric (with a descender)
368
     // Assume the label is alpha-numeric (with a descender)
377
       lcd_put_wchar(':');
377
       lcd_put_wchar(':');
378
       if (extra_row) {
378
       if (extra_row) {
379
         // Assume the value is numeric (with no descender)
379
         // Assume the value is numeric (with no descender)
380
-        baseline += EDIT_FONT_ASCENT;
380
+        baseline += EDIT_FONT_ASCENT + 2;
381
         onpage = PAGE_CONTAINS(baseline - (EDIT_FONT_ASCENT - 1), baseline);
381
         onpage = PAGE_CONTAINS(baseline - (EDIT_FONT_ASCENT - 1), baseline);
382
       }
382
       }
383
       if (onpage) {
383
       if (onpage) {

Loading…
Cancel
Save