Skip to content

Commit

Permalink
Use SFML style conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Oct 13, 2024
1 parent c1f0525 commit 5014143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

int main()
{
auto window = sf::RenderWindow{ { 1920u, 1080u }, "CMake SFML Project" };
auto window = sf::RenderWindow({1920u, 1080u}, "CMake SFML Project");
window.setFramerateLimit(144);

while (window.isOpen())
{
for (auto event = sf::Event{}; window.pollEvent(event);)
for (auto event = sf::Event(); window.pollEvent(event);)
{
if (event.type == sf::Event::Closed)
{
Expand Down

0 comments on commit 5014143

Please sign in to comment.