From c07fa17927ff5da3f7c2e87e1e3b11ae3da737a8 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 8 Jul 2021 20:36:06 +0100 Subject: [PATCH] Make Rect.size const --- 32blit/types/rect.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/32blit/types/rect.hpp b/32blit/types/rect.hpp index 245753db8..e75ce0571 100644 --- a/32blit/types/rect.hpp +++ b/32blit/types/rect.hpp @@ -19,7 +19,7 @@ namespace blit { inline Rect& operator*= (const float a) { x = static_cast(x * a); y = static_cast(y * a); w = static_cast(w * a); h = static_cast(h * a); return *this; } - Size size() { + Size size() const { return Size(w, h); }