Browse Source

Fixed platform differences and switched windows size values from hard coded to use a common set of variables

David Wimsey 11 years ago
parent
commit
8a5c69d639
1 changed files with 8 additions and 1 deletions
  1. 8 1
      Samples/basic/sfml/src/main.cpp

+ 8 - 1
Samples/basic/sfml/src/main.cpp

@@ -35,7 +35,14 @@
 
 int main(int argc, char **argv)
 {
-	sf::RenderWindow MyWindow(sf::VideoMode(800, 600), "libRocket with SFML");
+#ifdef ROCKET_PLATFORM_WIN32
+        DoAllocConsole();
+#endif
+
+        int window_width = 1024;
+        int window_height = 768;
+
+	sf::RenderWindow MyWindow(sf::VideoMode(window_width, window_height), "libRocket with SFML");
 
 	RocketSFMLRenderer Renderer;
 	RocketSFMLSystemInterface SystemInterface;