Browse Source

Now the simplycistic solution.

Just and only display splashscreen only once.
AnHardt 10 years ago
parent
commit
6ae714894e
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/dogm_lcd_implementation.h

+ 3
- 3
Marlin/dogm_lcd_implementation.h View File

186
   return n;
186
   return n;
187
 }
187
 }
188
 
188
 
189
-static int8_t show_splashscreed = 2;
189
+static bool show_splashscreen = true;
190
 
190
 
191
 static void lcd_implementation_init()
191
 static void lcd_implementation_init()
192
 {
192
 {
221
 
221
 
222
 	u8g.firstPage();
222
 	u8g.firstPage();
223
 	do {
223
 	do {
224
-    if (show_splashscreed) {
224
+    if (show_splashscreen) {
225
       u8g.drawBitmapP(offx, offy, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
225
       u8g.drawBitmapP(offx, offy, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
226
       lcd_setFont(FONT_MENU);
226
       lcd_setFont(FONT_MENU);
227
       #ifndef STRING_SPLASH_LINE2
227
       #ifndef STRING_SPLASH_LINE2
231
         u8g.drawStr(txt1X, u8g.getHeight() - DOG_CHAR_HEIGHT*3/2, STRING_SPLASH_LINE1);
231
         u8g.drawStr(txt1X, u8g.getHeight() - DOG_CHAR_HEIGHT*3/2, STRING_SPLASH_LINE1);
232
         u8g.drawStr(txt2X, u8g.getHeight() - DOG_CHAR_HEIGHT*1/2, STRING_SPLASH_LINE2);
232
         u8g.drawStr(txt2X, u8g.getHeight() - DOG_CHAR_HEIGHT*1/2, STRING_SPLASH_LINE2);
233
       #endif
233
       #endif
234
-      show_splashscreed--;
235
     }
234
     }
236
 	} while (u8g.nextPage());
235
 	} while (u8g.nextPage());
236
+  show_splashscreen = false;
237
 }
237
 }
238
 
238
 
239
 static void lcd_implementation_clear() { } // Automatically cleared by Picture Loop
239
 static void lcd_implementation_clear() { } // Automatically cleared by Picture Loop

Loading…
Cancel
Save