mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
make sure to clear the screen completely on initial flips
This commit is contained in:
parent
6899ea5f52
commit
52e128ed28
1 changed files with 2 additions and 1 deletions
|
@ -289,6 +289,7 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
|
|||
al_inhibit_screensaver(true);
|
||||
|
||||
SetupViewport(game);
|
||||
ClearScreen(game);
|
||||
al_flip_display();
|
||||
|
||||
al_add_new_bitmap_flag(ALLEGRO_MIN_LINEAR | ALLEGRO_MAG_LINEAR);
|
||||
|
@ -355,7 +356,7 @@ SYMBOL_EXPORT int libsuperderpy_start(struct Game* game) {
|
|||
// Turns out SDL/Wayland needs some help with emitting the resize event before it's too late.
|
||||
ALLEGRO_EVENT event;
|
||||
al_peek_next_event(game->_priv.event_queue, &event);
|
||||
al_clear_to_color(al_map_rgb(0, 0, 0));
|
||||
ClearScreen(game);
|
||||
al_flip_display();
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue