Skip to content

Commit

Permalink
Fix default window aspect ratio
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Senichev <[email protected]>
  • Loading branch information
artemsen committed Jan 23, 2024
1 parent 667dc01 commit 0361d4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ static const LevelSize level_sizes[] = {

Game::Game(SDL_Window* wnd, SDL_Renderer* renderer)
: window(wnd)
, layout()
, render(renderer)
, puzzle_mode(true)
{
Expand Down Expand Up @@ -131,7 +132,7 @@ bool Game::update()
sound.play(Sound::Clatz);
}

return level.state.rotation_active || !fireworks.empty();
return level.state.rotation_active || level.state.level_complete;
}

void Game::draw()
Expand Down

0 comments on commit 0361d4c

Please sign in to comment.