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
This commit is contained in:
Justin Burchartz
2019-04-16 13:54:49 +02:00
committed by Max Hilbrunner
parent 7df2db1725
commit d1b8ba9d6b

View File

@@ -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: