fix restarting level background music on toggling fullscreen mode

This commit is contained in:
Sebastian Krzyszkowiak 2012-09-28 02:50:43 +02:00
parent d62be104e8
commit 79ac41a085
2 changed files with 1 additions and 1 deletions

View file

@ -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;

View file

@ -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));