浏览代码

Code review

Co-authored-by: Ivan Savenko <[email protected]>
Laserlicht 1 年之前
父节点
当前提交
68e63630d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/adventureMap/AdventureMapInterface.cpp

+ 1 - 1
client/adventureMap/AdventureMapInterface.cpp

@@ -171,7 +171,7 @@ void AdventureMapInterface::show(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())
 		for (auto window : GH.windows().findWindows<CIntObject>())