mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 09:11:27 +01:00
fix possible delay when displaying loading screen
This commit is contained in:
parent
f0c72edfd5
commit
d0ac545e4b
1 changed files with 5 additions and 0 deletions
|
@ -403,6 +403,11 @@ int main(int argc, char **argv){
|
|||
al_flip_display();
|
||||
}
|
||||
|
||||
// initially draw loading screen with empty bar
|
||||
(*game._priv.loading.Draw)(&game, game._priv.loading.data, 0);
|
||||
DrawConsole(&game);
|
||||
al_flip_display();
|
||||
|
||||
tmp->data = (*tmp->api.Gamestate_Load)(&game, &progress);
|
||||
loaded++;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue