mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
@@ -171,7 +171,7 @@ void AdventureMapInterface::show(Canvas & to)
|
|||||||
|
|
||||||
void AdventureMapInterface::dim(Canvas & to)
|
void AdventureMapInterface::dim(Canvas & to)
|
||||||
{
|
{
|
||||||
auto const isBigWindow = [&](std::shared_ptr<CIntObject> window) { return std::dynamic_pointer_cast<CIntObject>(window)->pos.w >= 800 && std::dynamic_pointer_cast<CIntObject>(window)->pos.w >= 600; }; // OH3 fullscreen
|
auto const isBigWindow = [&](std::shared_ptr<CIntObject> window) { return window->pos.w >= 800 && window->pos.h >= 600; }; // OH3 fullscreen
|
||||||
|
|
||||||
if(settings["adventure"]["hideBackground"].Bool())
|
if(settings["adventure"]["hideBackground"].Bool())
|
||||||
for (auto window : GH.windows().findWindows<CIntObject>())
|
for (auto window : GH.windows().findWindows<CIntObject>())
|
||||||
|
Reference in New Issue
Block a user