mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
LibGfx: Make Rect::set_{bottom,right}_without_resize() work for non-int
This commit is contained in:
parent
37729f5b91
commit
f485db2501
1 changed files with 2 additions and 2 deletions
|
@ -374,13 +374,13 @@ public:
|
||||||
|
|
||||||
void set_right_without_resize(T new_right)
|
void set_right_without_resize(T new_right)
|
||||||
{
|
{
|
||||||
int delta = new_right - right();
|
auto delta = new_right - right();
|
||||||
translate_by(delta, 0);
|
translate_by(delta, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_bottom_without_resize(T new_bottom)
|
void set_bottom_without_resize(T new_bottom)
|
||||||
{
|
{
|
||||||
int delta = new_bottom - bottom();
|
auto delta = new_bottom - bottom();
|
||||||
translate_by(0, delta);
|
translate_by(0, delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue