Jelajahi Sumber

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
Justin Burchartz 6 tahun lalu
induk
melakukan
d1b8ba9d6b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      tutorials/inputs/mouse_and_input_coordinates.rst

+ 1 - 1
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: