Browse Source

Make centering of STRING_SPLASH work

AnHardt 10 years ago
parent
commit
0d219b3e14
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/dogm_lcd_implementation.h

+ 1
- 1
Marlin/dogm_lcd_implementation.h View File

@@ -118,7 +118,7 @@ static void lcd_implementation_init()
118 118
 
119 119
   // Show splashscreen
120 120
   int off = (u8g.getWidth() - START_BMPWIDTH) / 2;
121
-  int txtX = (u8g.getWidth() - sizeof(STRING_SPLASH) - 1) / 2;
121
+  int txtX = (u8g.getWidth() - (sizeof(STRING_SPLASH) - 1)*5) / 2; // 5 is fontwidth in pixel
122 122
   int txtY = u8g.getHeight() - 10;
123 123
 	u8g.firstPage();
124 124
 	do {

Loading…
Cancel
Save