mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 09:11:27 +01:00
fix restarting level background music on toggling fullscreen mode
This commit is contained in:
parent
d62be104e8
commit
79ac41a085
2 changed files with 1 additions and 1 deletions
|
@ -227,6 +227,7 @@ int Level_Keydown(struct Game *game, ALLEGRO_EVENT *ev) {
|
|||
if (ev->keyboard.keycode==ALLEGRO_KEY_ESCAPE) {
|
||||
game->gamestate = GAMESTATE_PAUSE;
|
||||
game->loadstate = GAMESTATE_LEVEL;
|
||||
PauseGameState(game);
|
||||
Pause_Load(game);
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -71,7 +71,6 @@ void Pause_Preload(struct Game* game) {
|
|||
}
|
||||
|
||||
void Pause_Load(struct Game* game) {
|
||||
PauseGameState(game);
|
||||
ALLEGRO_BITMAP *fade = al_create_bitmap(game->viewportWidth, game->viewportHeight);
|
||||
al_set_target_bitmap(fade);
|
||||
al_clear_to_color(al_map_rgb(0,0,0));
|
||||
|
|
Loading…
Add table
Reference in a new issue