mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-12-01 01:18:52 +00:00
Merge pull request #177 from Mojert/master
raylib::Window::GetSize() is now a const method
This commit is contained in:
@@ -266,7 +266,7 @@ class Window {
|
||||
/**
|
||||
* Get the screen's width and height.
|
||||
*/
|
||||
inline Vector2 GetSize() {
|
||||
inline Vector2 GetSize() const {
|
||||
return {static_cast<float>(GetWidth()), static_cast<float>(GetHeight())};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user