diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-10-24 17:13:17 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-24 23:14:57 +0100 |
commit | f485db2501c32bd626d58973c8a34a81e09ca5dc (patch) | |
tree | 625e8fd9c5ea35cd95489ead3cc96451195762c1 /Userland/Libraries/LibGfx | |
parent | 37729f5b9123e878f1af24c4e859a332aa7147f7 (diff) | |
download | serenity-f485db2501c32bd626d58973c8a34a81e09ca5dc.zip |
LibGfx: Make Rect::set_{bottom,right}_without_resize() work for non-int
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r-- | Userland/Libraries/LibGfx/Rect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Rect.h b/Userland/Libraries/LibGfx/Rect.h index 427a24e180..819d1b1dd7 100644 --- a/Userland/Libraries/LibGfx/Rect.h +++ b/Userland/Libraries/LibGfx/Rect.h @@ -374,13 +374,13 @@ public: void set_right_without_resize(T new_right) { - int delta = new_right - right(); + auto delta = new_right - right(); translate_by(delta, 0); } void set_bottom_without_resize(T new_bottom) { - int delta = new_bottom - bottom(); + auto delta = new_bottom - bottom(); translate_by(0, delta); } |