From 61c7c0fcfe97ef10c121ebb70e1ef3fed4a6fbba Mon Sep 17 00:00:00 2001 From: Walter Agazzi Date: Sun, 26 Feb 2023 20:42:32 +0100 Subject: [PATCH] AGS: Engine: fixed gui controls not updated after interface is un-disabled from upstream 126a5e4c97581aabadbbd4410441b83f371e18ea --- engines/ags/engine/ac/gui.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engines/ags/engine/ac/gui.cpp b/engines/ags/engine/ac/gui.cpp index 370aff5ad4c..0ad27e68c64 100644 --- a/engines/ags/engine/ac/gui.cpp +++ b/engines/ags/engine/ac/gui.cpp @@ -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(); }