Browse Source

Fixed window creation to use size variables rather than hard coded sizes

David Wimsey 11 years ago
parent
commit
6309f3fbf9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Samples/basic/directx10/src/main.cpp

+ 1 - 1
Samples/basic/directx10/src/main.cpp

@@ -53,7 +53,7 @@ int APIENTRY WinMain(HINSTANCE ROCKET_UNUSED_PARAMETER(instance_handle), HINSTAN
 	Rocket::Core::Initialise();
 	Rocket::Core::Initialise();
 
 
 	// Create the main Rocket context and set it on the shell's input layer.
 	// Create the main Rocket context and set it on the shell's input layer.
-	context = Rocket::Core::CreateContext("main", Rocket::Core::Vector2i(1024, 768));
+	context = Rocket::Core::CreateContext("main", Rocket::Core::Vector2i(window_width, window_height));
 	if (context == NULL)
 	if (context == NULL)
 	{
 	{
 		Rocket::Core::Shutdown();
 		Rocket::Core::Shutdown();