lua: invalidate Dialog() after changing its bounds

This commit is contained in:
David Capello 2019-07-12 16:42:43 -03:00
parent 33dd70f89d
commit 568aadbfc8

View File

@ -694,7 +694,10 @@ int Dialog_set_bounds(lua_State* L)
{ {
auto dlg = get_obj<Dialog>(L, 1); auto dlg = get_obj<Dialog>(L, 1);
const auto rc = get_obj<gfx::Rect>(L, 2); 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; return 0;
} }