From 60a354e39498ca63e741e5ef03abfd258cea96a4 Mon Sep 17 00:00:00 2001 From: Justin Burchartz <11074890+juspky@users.noreply.github.com> Date: Tue, 16 Apr 2019 13:54:49 +0200 Subject: [PATCH] GetViewPortRect().Size -> GetViewportRect().Size (#2338) * GetViewPortRect().Size -> GetViewport().Size GetViewPortRect() does not seem to excist anymore so I replaced it with GetViewport().Size * GetViewportRect() actually excists but with proper casing --- tutorials/inputs/mouse_and_input_coordinates.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/inputs/mouse_and_input_coordinates.rst b/tutorials/inputs/mouse_and_input_coordinates.rst index 9eb34e84d..2d02d0943 100644 --- a/tutorials/inputs/mouse_and_input_coordinates.rst +++ b/tutorials/inputs/mouse_and_input_coordinates.rst @@ -49,7 +49,7 @@ for example: GD.Print("Mouse Motion at: ", eventMouseMotion.Position); // Print the size of the viewport - GD.Print("Viewport Resolution is: ", GetViewPortRect().Size); + GD.Print("Viewport Resolution is: ", GetViewportRect().Size); } Alternatively, it's possible to ask the viewport for the mouse position: