From aa48056c037373b5ace55378541d6962d777d623 Mon Sep 17 00:00:00 2001
From: AnHardt <andreas@hardtung.de>
Date: Mon, 26 Jan 2015 17:26:22 +0100
Subject: [PATCH] Made centering of bootlogo work and removed contraproductiv
 setScale2x2() in dogm_lcd_implementation.h

---
 Marlin/dogm_lcd_implementation.h | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/Marlin/dogm_lcd_implementation.h b/Marlin/dogm_lcd_implementation.h
index 5908d7b43b..ffc323c5a5 100644
--- a/Marlin/dogm_lcd_implementation.h
+++ b/Marlin/dogm_lcd_implementation.h
@@ -117,18 +117,13 @@ static void lcd_implementation_init()
 	} while(u8g.nextPage());
 
   // Show splashscreen
-  int off = (u8g.getWidth() - START_BMPWIDTH) / 2;
+  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 txtY = u8g.getHeight() - 10;
 	u8g.firstPage();
 	do {
-    #ifdef START_BMPHIGH
-		  u8g.drawBitmapP(off, off, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
-    #else
-      u8g.setScale2x2();
-		  u8g.drawBitmapP(off, off, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
-      u8g.undoScale();
-    #endif
+	  u8g.drawBitmapP(offx, offy, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
 			
     u8g.setFont(u8g_font_5x8);
 		u8g.drawStr(txtX, txtY, STRING_SPLASH);
-- 
GitLab