AGS: Engine: fixed gui controls not updated after interface is un-disabled

from upstream 126a5e4c97581aabadbbd4410441b83f371e18ea
This commit is contained in:
Walter Agazzi 2023-02-26 20:42:32 +01:00 committed by Thierry Crozat
parent 8c6524a888
commit 61c7c0fcfe

View File

@ -447,9 +447,7 @@ void update_gui_disabled_status() {
if (all_buttons_was != _G(all_buttons_disabled)) {
// As controls become enabled we must notify parent GUIs
// to let them reset control-under-mouse detection
for (int aa = 0; aa < _GP(game).numgui; aa++) {
_GP(guis)[aa].MarkControlsChanged();
}
GUI::MarkAllGUIForUpdate();
if (GUI::Options.DisabledStyle != kGuiDis_Unchanged) {
invalidate_screen();
}