also invalidate previous location when resizing a widget

Fixes #7617

widget::set_origin should probably also call queue_redraw(), not fully sure yet though.
This commit is contained in:
gfgtdf 2023-10-22 01:28:24 +02:00
parent 9fffd88242
commit 9c84c07497

View file

@ -230,6 +230,7 @@ void widget::set_size(const point& size)
assert(size.x >= 0);
assert(size.y >= 0);
queue_redraw();
width_ = size.x;
height_ = size.y;
@ -241,6 +242,7 @@ void widget::place(const point& origin, const point& size)
assert(size.x >= 0);
assert(size.y >= 0);
queue_redraw();
x_ = origin.x;
y_ = origin.y;
width_ = size.x;