Ver código fonte

SFML: make window non closable

Streetwalrus Einstein 10 anos atrás
pai
commit
45a979a0e4
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      platform/sfml/Graphics.cpp

+ 2 - 1
platform/sfml/Graphics.cpp

@@ -11,7 +11,8 @@ sf::RenderTexture buffer;
 
 void GRAPHICS::init()
 {
-    window.create(sf::VideoMode(640, 480), "WalrusRPG");
+    window.create(sf::VideoMode(640, 480), "WalrusRPG",
+                  sf::Style::Titlebar | sf::Style::Resize);
     view = sf::View(window.getDefaultView());
     buffer.create(320, 240);
 }