Browse Source

Replace solitaire use of u8g_font_5x8 font and replace with u8g_font_6x10_marlin

and win another 1694 bytes.
AnHardt 9 years ago
parent
commit
3602474c25
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/dogm_lcd_implementation.h

+ 2
- 2
Marlin/dogm_lcd_implementation.h View File

@@ -110,13 +110,13 @@ static void lcd_implementation_init()
110 110
   // Show splashscreen
111 111
   int offx = (u8g.getWidth() - START_BMPWIDTH) / 2;
112 112
   int offy = (u8g.getHeight() - 18 - START_BMPHEIGHT) / 2;
113
-  int txtX = (u8g.getWidth() - (sizeof(STRING_SPLASH) - 1)*5) / 2; // 5 is fontwidth in pixel
113
+  int txtX = (u8g.getWidth() - (sizeof(STRING_SPLASH) - 1)*6) / 2; // 6 is fontwidth in pixel
114 114
   int txtY = u8g.getHeight() - 10;
115 115
 	u8g.firstPage();
116 116
 	do {
117 117
 	  u8g.drawBitmapP(offx, offy, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
118 118
 			
119
-    u8g.setFont(u8g_font_5x8);
119
+    u8g.setFont(u8g_font_6x10_marlin);
120 120
 		u8g.drawStr(txtX, txtY, STRING_SPLASH);
121 121
 	} while(u8g.nextPage());
122 122
 }

Loading…
Cancel
Save