From cf4384071d892e7c4f9f81fdbbc6ccbb725efa3a Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Fri, 19 Apr 2024 23:11:24 +0200 Subject: [PATCH] use CIntObject instead of IShowActivatable --- client/adventureMap/AdventureMapInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/adventureMap/AdventureMapInterface.cpp b/client/adventureMap/AdventureMapInterface.cpp index 467a3964f..d1678b513 100644 --- a/client/adventureMap/AdventureMapInterface.cpp +++ b/client/adventureMap/AdventureMapInterface.cpp @@ -171,10 +171,10 @@ void AdventureMapInterface::show(Canvas & to) void AdventureMapInterface::dim(Canvas & to) { - auto const isBigWindow = [&](std::shared_ptr window) { return std::dynamic_pointer_cast(window)->pos.w >= 800 && std::dynamic_pointer_cast(window)->pos.w >= 600; }; // OH3 fullscreen + auto const isBigWindow = [&](std::shared_ptr window) { return std::dynamic_pointer_cast(window)->pos.w >= 800 && std::dynamic_pointer_cast(window)->pos.w >= 600; }; // OH3 fullscreen if(settings["adventure"]["hideBackground"].Bool()) - for (auto window : GH.windows().findWindows()) + for (auto window : GH.windows().findWindows()) { if(!std::dynamic_pointer_cast(window) && std::dynamic_pointer_cast(window) && isBigWindow(window)) { @@ -182,7 +182,7 @@ void AdventureMapInterface::dim(Canvas & to) return; } } - for (auto window : GH.windows().findWindows()) + for (auto window : GH.windows().findWindows()) { if (!std::dynamic_pointer_cast(window) && !std::dynamic_pointer_cast(window) && !window->isPopupWindow() && (settings["adventure"]["backgroundDimSmallWindows"].Bool() || isBigWindow(window))) {