mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
fixes problem with radial menu
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
#include "../mapView/mapHandler.h"
|
#include "../mapView/mapHandler.h"
|
||||||
#include "../mapView/MapView.h"
|
#include "../mapView/MapView.h"
|
||||||
#include "../windows/InfoWindows.h"
|
#include "../windows/InfoWindows.h"
|
||||||
|
#include "../widgets/RadialMenu.h"
|
||||||
#include "../CGameInfo.h"
|
#include "../CGameInfo.h"
|
||||||
#include "../gui/CursorHandler.h"
|
#include "../gui/CursorHandler.h"
|
||||||
#include "../gui/CGuiHandler.h"
|
#include "../gui/CGuiHandler.h"
|
||||||
@@ -169,8 +170,7 @@ void AdventureMapInterface::dim(Canvas & to)
|
|||||||
{
|
{
|
||||||
for (auto window : GH.windows().findWindows<IShowActivatable>())
|
for (auto window : GH.windows().findWindows<IShowActivatable>())
|
||||||
{
|
{
|
||||||
std::shared_ptr<AdventureMapInterface> casted = std::dynamic_pointer_cast<AdventureMapInterface>(window);
|
if (!std::dynamic_pointer_cast<AdventureMapInterface>(window) && !std::dynamic_pointer_cast<RadialMenu>(window) && !window->isPopupWindow())
|
||||||
if (!casted && !window->isPopupWindow())
|
|
||||||
{
|
{
|
||||||
Rect targetRect(0, 0, GH.screenDimensions().x, GH.screenDimensions().y);
|
Rect targetRect(0, 0, GH.screenDimensions().x, GH.screenDimensions().y);
|
||||||
ColorRGBA colorToFill(0, 0, 0, std::clamp<int>(backgroundDimLevel, 0, 255));
|
ColorRGBA colorToFill(0, 0, 0, std::clamp<int>(backgroundDimLevel, 0, 255));
|
||||||
|
Reference in New Issue
Block a user