Replace solitaire use of u8g_font_5x8 font and replace with u8g_font_6x10_marlin

and win another 1694 bytes.
2.0.x
AnHardt 10 years ago
parent f5fd94d62a
commit 3602474c25

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

Loading…
Cancel
Save