move first al_flip_display() way earlier

This commit is contained in:
Sebastian Krzyszkowiak 2019-02-13 23:00:33 +01:00
parent f8306f80c1
commit 0ba9c7bbae
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -267,6 +267,7 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
al_inhibit_screensaver(true);
SetupViewport(game);
al_flip_display();
al_add_new_bitmap_flag(ALLEGRO_MIN_LINEAR | ALLEGRO_MAG_LINEAR);
@ -328,10 +329,6 @@ SYMBOL_EXPORT int libsuperderpy_start(struct Game* game) {
}
al_register_event_source(game->_priv.event_queue, &(game->event_source));
al_clear_to_color(al_map_rgb(0, 0, 0));
al_flip_display();
{
struct Gamestate* tmp = game->_priv.gamestates;
while (tmp) {