Răsfoiți Sursa

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 ani în urmă
părinte
comite
d1b8ba9d6b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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: