From 1a74c4978c02d980adf78514f237b8522c698877 Mon Sep 17 00:00:00 2001 From: Mojert Date: Thu, 14 Apr 2022 18:08:40 +0200 Subject: [PATCH] raylib::Window::GetSize() is now a const method --- include/Window.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Window.hpp b/include/Window.hpp index 477c4a9..18a224d 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -266,7 +266,7 @@ class Window { /** * Get the screen's width and height. */ - inline Vector2 GetSize() { + inline Vector2 GetSize() const { return {static_cast(GetWidth()), static_cast(GetHeight())}; }