Skip to content

Commit

Permalink
Merge pull request #690 from Daft-Freak/patch-2
Browse files Browse the repository at this point in the history
Make Rect.size const
  • Loading branch information
Gadgetoid authored Jul 12, 2021
2 parents 3ed80ad + c07fa17 commit 0f6a468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 32blit/types/rect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace blit {

inline Rect& operator*= (const float a) { x = static_cast<int32_t>(x * a); y = static_cast<int32_t>(y * a); w = static_cast<int32_t>(w * a); h = static_cast<int32_t>(h * a); return *this; }

Size size() {
Size size() const {
return Size(w, h);
}

Expand Down

0 comments on commit 0f6a468

Please sign in to comment.