mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 03:39:51 +00:00
lua: invalidate Dialog() after changing its bounds
This commit is contained in:
parent
33dd70f89d
commit
568aadbfc8
@ -694,7 +694,10 @@ int Dialog_set_bounds(lua_State* L)
|
||||
{
|
||||
auto dlg = get_obj<Dialog>(L, 1);
|
||||
const auto rc = get_obj<gfx::Rect>(L, 2);
|
||||
dlg->window.setBounds(*rc);
|
||||
if (*rc != dlg->window.bounds()) {
|
||||
dlg->window.setBounds(*rc);
|
||||
dlg->window.invalidate();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user