From 3602474c25dbd81e1e5e991966c2d99d8d49f0da Mon Sep 17 00:00:00 2001 From: AnHardt Date: Tue, 3 Feb 2015 09:07:57 +0100 Subject: [PATCH] Replace solitaire use of u8g_font_5x8 font and replace with u8g_font_6x10_marlin and win another 1694 bytes. --- Marlin/dogm_lcd_implementation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/dogm_lcd_implementation.h b/Marlin/dogm_lcd_implementation.h index ee8c44d633..e901a7da22 100644 --- a/Marlin/dogm_lcd_implementation.h +++ b/Marlin/dogm_lcd_implementation.h @@ -110,13 +110,13 @@ static void lcd_implementation_init() // Show splashscreen int offx = (u8g.getWidth() - START_BMPWIDTH) / 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; u8g.firstPage(); do { 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); } while(u8g.nextPage()); }