mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 09:11:27 +01:00
fix displaying random first frame from memory left-overs right after game start on newer versions of Allegro
This commit is contained in:
parent
533410baee
commit
2078f2da29
1 changed files with 2 additions and 2 deletions
|
@ -411,9 +411,9 @@ int main(int argc, char **argv){
|
|||
}
|
||||
} else if (game.fps == 0) game.fps = mode.refresh_rate;
|
||||
if (game.fps>600) game.fps = 600;
|
||||
al_clear_to_color(al_map_rgb(0,0,0));
|
||||
al_flip_display();
|
||||
|
||||
al_flip_display();
|
||||
al_clear_to_color(al_map_rgb(0,0,0));
|
||||
if (game.fps>0) game.timer = al_create_timer(ALLEGRO_BPS_TO_SECS(game.fps));
|
||||
else game.timer = al_create_timer(ALLEGRO_BPS_TO_SECS(600));
|
||||
if(!game.timer) {
|
||||
|
|
Loading…
Add table
Reference in a new issue