mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 02:56:43 +01:00
fix type warning on some platforms in screenshoting code
This commit is contained in:
parent
c7741be51a
commit
9c3d284a90
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ SYMBOL_EXPORT int libsuperderpy_run(struct Game *game) {
|
|||
} else if ((ev.type == ALLEGRO_EVENT_KEY_DOWN) && (game->config.debug) && (ev.keyboard.keycode == ALLEGRO_KEY_F12)) {
|
||||
ALLEGRO_PATH *path = al_get_standard_path(ALLEGRO_USER_DOCUMENTS_PATH);
|
||||
char filename[255] = { };
|
||||
snprintf(filename, 255, "%s_%ld_%ld.png", game->name, time(NULL), clock());
|
||||
snprintf(filename, 255, "%s_%lld_%ld.png", game->name, (long long)time(NULL), clock());
|
||||
al_set_path_filename(path, filename);
|
||||
al_save_bitmap(al_path_cstr(path, ALLEGRO_NATIVE_PATH_SEP), al_get_backbuffer(game->display));
|
||||
PrintConsole(game, "Screenshot stored in %s", al_path_cstr(path, ALLEGRO_NATIVE_PATH_SEP));
|
||||
|
|
Loading…
Reference in a new issue