|
@@ -117,18 +117,13 @@ static void lcd_implementation_init()
|
117
|
117
|
} while(u8g.nextPage());
|
118
|
118
|
|
119
|
119
|
// Show splashscreen
|
120
|
|
- int off = (u8g.getWidth() - START_BMPWIDTH) / 2;
|
|
120
|
+ int offx = (u8g.getWidth() - START_BMPWIDTH) / 2;
|
|
121
|
+ int offy = (u8g.getHeight() - 18 - START_BMPHEIGHT) / 2;
|
121
|
122
|
int txtX = (u8g.getWidth() - (sizeof(STRING_SPLASH) - 1)*5) / 2; // 5 is fontwidth in pixel
|
122
|
123
|
int txtY = u8g.getHeight() - 10;
|
123
|
124
|
u8g.firstPage();
|
124
|
125
|
do {
|
125
|
|
- #ifdef START_BMPHIGH
|
126
|
|
- u8g.drawBitmapP(off, off, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
|
127
|
|
- #else
|
128
|
|
- u8g.setScale2x2();
|
129
|
|
- u8g.drawBitmapP(off, off, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
|
130
|
|
- u8g.undoScale();
|
131
|
|
- #endif
|
|
126
|
+ u8g.drawBitmapP(offx, offy, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
|
132
|
127
|
|
133
|
128
|
u8g.setFont(u8g_font_5x8);
|
134
|
129
|
u8g.drawStr(txtX, txtY, STRING_SPLASH);
|