Bladeren bron

Fix TestsShell

Michael Ragazzon 4 jaren geleden
bovenliggende
commit
fa2b6a579e
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1 1
      Samples/shell/include/Shell.h
  2. 2 2
      Tests/Source/Common/TestsShell.cpp

+ 1 - 1
Samples/shell/include/Shell.h

@@ -93,7 +93,7 @@ public:
 	/// Sets the RmlUi context to send window resized events to.
 	static void SetContext(Rml::Context* context);
 
-	/// Sets the RmlUi context to send window resized events to.
+	/// Return the dp-ratio of the system.
 	static float GetDensityIndependentPixelRatio();
 };
 

+ 2 - 2
Tests/Source/Common/TestsShell.cpp

@@ -105,7 +105,7 @@ static void InitializeShell()
 		shell_render_interface.SetViewport(window_size.x, window_size.y);
 
 		::Input::SetContext(shell_context);
-		shell_render_interface.SetContext(shell_context);
+		Shell::SetContext(shell_context);
 
 		shell_context->GetRootElement()->AddEventListener(Rml::EventId::Keydown, &shell_event_listener, true);
 #endif
@@ -161,7 +161,7 @@ void TestsShell::ShutdownShell()
 #ifdef RMLUI_TESTS_USE_SHELL
 		Shell::CloseWindow();
 		Shell::Shutdown();
-		shell_render_interface.SetContext(nullptr);
+		Shell::SetContext(nullptr);
 #endif
 
 		shell_context = nullptr;