From 7bb946a805593cf0118e7917d82fec003120fab9 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 6 Mar 2022 19:21:21 -0800 Subject: [PATCH] Prevent window resizing --- src/Main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main.cpp b/src/Main.cpp index 41b8bb6..2c28c0d 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -172,7 +173,7 @@ int main() { srand(time(NULL)); - sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris"); + sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris", sf::Style::Close); window.setFramerateLimit(60); Block block;