summaryrefslogtreecommitdiff
path: root/core/math/rect2i.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-07 22:21:43 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-07 22:21:43 +0200
commit39f9c4d229dfffe7ba4b00571e0cb4b65a36b0d5 (patch)
tree4e2e1d8307478cd86c64b00d23931c686a494d96 /core/math/rect2i.h
parent7ca49be7ed0bc2b32adfad81db1278e841e2fe0c (diff)
parent43722dbcbc1e164ab8b9008395c650edb1d977db (diff)
Merge pull request #67011 from aaronfranke/color-float-literals
Use float literals for float calculations in Color and misc core cleanup
Diffstat (limited to 'core/math/rect2i.h')
-rw-r--r--core/math/rect2i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/rect2i.h b/core/math/rect2i.h
index 2b58dcdd98..c92f2cae02 100644
--- a/core/math/rect2i.h
+++ b/core/math/rect2i.h
@@ -121,7 +121,7 @@ struct _NO_DISCARD_ Rect2i {
new_rect.size.x = MAX(p_rect.position.x + p_rect.size.x, position.x + size.x);
new_rect.size.y = MAX(p_rect.position.y + p_rect.size.y, position.y + size.y);
- new_rect.size = new_rect.size - new_rect.position; //make relative again
+ new_rect.size = new_rect.size - new_rect.position; // Make relative again.
return new_rect;
}