mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 17:21:27 +01:00
SetupViewport: clear both backbuffer and fontbuffer on setup
This commit is contained in:
parent
9c3d284a90
commit
9c414991dd
1 changed files with 2 additions and 0 deletions
|
@ -294,6 +294,8 @@ SYMBOL_EXPORT void SetupViewport(struct Game *game, struct libsuperderpy_viewpor
|
|||
al_use_transform(&game->projection);
|
||||
al_set_clipping_rectangle(0, 0, al_get_display_width(game->display), al_get_display_height(game->display));
|
||||
|
||||
al_clear_to_color(al_map_rgb(0,0,0));
|
||||
al_flip_display();
|
||||
al_clear_to_color(al_map_rgb(0,0,0));
|
||||
|
||||
float resolution = al_get_display_width(game->display) / (float)game->viewport.width;
|
||||
|
|
Loading…
Add table
Reference in a new issue