Skip to content

Commit

Permalink
fixed fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipagaxi committed Jun 5, 2024
1 parent 5cfda22 commit d28ba82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Game &Game::getInstance() {
return *instance;
}

Game::Game(): gameWindow(*(new sf::RenderWindow(sf::VideoMode(), "Road of Ogden", sf::Style::Fullscreen))) {
sf::RenderWindow window(sf::VideoMode(), "Road of Ogden", sf::Style::Fullscreen);
Game::Game(): gameWindow(*(new sf::RenderWindow(sf::VideoMode::getDesktopMode(), "Road of Ogden", sf::Style::Fullscreen))) {
//sf::RenderWindow window(sf::VideoMode::getDesktopMode(), "Road of Ogden", sf::Style::Fullscreen);
this->gameWindow.setFramerateLimit(60);
this->mainFont.loadFromFile(RESOURCE_PATH "fonts/Avara-Bold.otf");
}
Expand Down

0 comments on commit d28ba82

Please sign in to comment.