From 6735355e28e5656f558620b11ac762368155885b Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sat, 27 Apr 2024 00:39:01 -0400 Subject: [PATCH] Need some extra stuff to make it work in mingw on Windows. --- sfmldemo/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sfmldemo/main.cpp b/sfmldemo/main.cpp index 6a32ca2..c0f2408 100644 --- a/sfmldemo/main.cpp +++ b/sfmldemo/main.cpp @@ -1,5 +1,7 @@ #include "imgui.h" #include "imgui-SFML.h" +#define _USE_MATH_DEFINES +#include #include #include #include @@ -73,7 +75,7 @@ int main() { sf::ContextSettings settings; settings.antialiasingLevel = 8; - sf::RenderWindow window(sf::VideoMode(720, 480), "Simple Game Demo", sf::Style::Default, settings); + sf::RenderWindow window(sf::VideoMode(1920, 1080), "Simple Game Demo", sf::Style::Default, settings); // window.setFramerateLimit(60); window.setVerticalSyncEnabled(true);