浏览代码

fix graphical issue with non squared maps

Laserlicht 1 月之前
父节点
当前提交
293a1a7045
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      client/adventureMap/CMinimap.cpp

+ 3 - 0
client/adventureMap/CMinimap.cpp

@@ -244,7 +244,10 @@ void CMinimap::onMapViewMoved(const Rect & visibleArea, int mapLevel)
 		update();
 	}
 	else
+	{
+		setRedrawParent(true); // needed for non square map to redraw black background when viewarea rectangle is moved
 		redraw();
+	}
 }
 
 void CMinimap::setAIRadar(bool on)