mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 17:21:27 +01:00
flush stdout on PrintConsole
This commit is contained in:
parent
a74403bfbf
commit
5bba098c82
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ void PrintConsole(struct Game *game, char* format, ...) {
|
||||||
char text[255] = {};
|
char text[255] = {};
|
||||||
vsprintf(text, format, vl);
|
vsprintf(text, format, vl);
|
||||||
va_end(vl);
|
va_end(vl);
|
||||||
if (game->debug) printf("%s\n", text);
|
if (game->debug) { printf("%s\n", text); fflush(stdout); }
|
||||||
ALLEGRO_BITMAP *con = al_create_bitmap(al_get_bitmap_width(game->console), al_get_bitmap_height(game->console));
|
ALLEGRO_BITMAP *con = al_create_bitmap(al_get_bitmap_width(game->console), al_get_bitmap_height(game->console));
|
||||||
al_set_target_bitmap(con);
|
al_set_target_bitmap(con);
|
||||||
al_clear_to_color(al_map_rgba(0,0,0,80));
|
al_clear_to_color(al_map_rgba(0,0,0,80));
|
||||||
|
|
Loading…
Add table
Reference in a new issue