[drape]Review fix. Handle scale changing.

This commit is contained in:
ExMix 2013-11-05 14:29:02 +03:00 committed by Alex Zolotarev
parent b0d4534014
commit bf4e2970a7

View file

@ -101,7 +101,8 @@ namespace df
vector<Tiler::RectInfo> tiles;
m_tiler.tiles(tiles, 1);
if (!m_currentViewport.GlobalRect().IsIntersect(screen.GlobalRect()))
if (!m_currentViewport.GlobalRect().IsIntersect(screen.GlobalRect())
|| screen.GetScale() != m_currentViewport.GetScale())
{
typedef set<ReadMWMTask *>::iterator index_iter;
for (index_iter it = m_taskIndex.begin(); it != m_taskIndex.end(); ++it)