Fix splash position

See #3
This commit is contained in:
Alexander Batalov 2022-05-21 20:29:02 +03:00
parent 2148d52cca
commit cffd0321f6

View File

@ -1258,7 +1258,9 @@ void showSplash()
fileRead(data, 1, SPLASH_WIDTH * SPLASH_HEIGHT, stream);
fileClose(stream);
_scr_blit(data, SPLASH_WIDTH, SPLASH_HEIGHT, 0, 0, SPLASH_WIDTH, SPLASH_HEIGHT, 0, 0);
int splashWindowX = (screenGetWidth() - SPLASH_WIDTH) / 2;
int splashWindowY = (screenGetHeight() - SPLASH_HEIGHT) / 2;
_scr_blit(data, SPLASH_WIDTH, SPLASH_HEIGHT, 0, 0, SPLASH_WIDTH, SPLASH_HEIGHT, splashWindowX, splashWindowY);
paletteFadeTo(palette);
internal_free(data);