ToggleFullscreen: log whether fullscreen is being toggled on or off

This commit is contained in:
Sebastian Krzyszkowiak 2019-09-06 22:57:04 +02:00
parent 3a0b8a706a
commit 09c8506b37
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -698,7 +698,7 @@ SYMBOL_EXPORT bool ToggleFullscreen(struct Game* game) {
#endif #endif
al_set_display_flag(game->display, ALLEGRO_FULLSCREEN_WINDOW, game->config.fullscreen); al_set_display_flag(game->display, ALLEGRO_FULLSCREEN_WINDOW, game->config.fullscreen);
SetupViewport(game); SetupViewport(game);
PrintConsole(game, "Fullscreen toggled"); PrintConsole(game, "Fullscreen toggled: %s", game->config.fullscreen ? "on" : "off");
return game->config.fullscreen; return game->config.fullscreen;
} }