mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-23 22:56:18 +00:00
Make centering of STRING_SPLASH work
This commit is contained in:
parent
59315330dd
commit
0d219b3e14
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ static void lcd_implementation_init()
|
||||||
|
|
||||||
// Show splashscreen
|
// Show splashscreen
|
||||||
int off = (u8g.getWidth() - START_BMPWIDTH) / 2;
|
int off = (u8g.getWidth() - START_BMPWIDTH) / 2;
|
||||||
int txtX = (u8g.getWidth() - sizeof(STRING_SPLASH) - 1) / 2;
|
int txtX = (u8g.getWidth() - (sizeof(STRING_SPLASH) - 1)*5) / 2; // 5 is fontwidth in pixel
|
||||||
int txtY = u8g.getHeight() - 10;
|
int txtY = u8g.getHeight() - 10;
|
||||||
u8g.firstPage();
|
u8g.firstPage();
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Add table
Reference in a new issue