summaryrefslogtreecommitdiff
path: root/src/progs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-08 23:36:01 +0300
committerAndrei Karas <akaras@inbox.ru>2019-04-08 23:36:01 +0300
commit010455ce5fc860f41448537e14f30a8453ce5150 (patch)
tree95dafb8e18fe3f8ce4a0656866187025695888f9 /src/progs
parent226fea014e24ea69989c7ac2f7428926ec865663 (diff)
downloadplus-010455ce5fc860f41448537e14f30a8453ce5150.tar.gz
plus-010455ce5fc860f41448537e14f30a8453ce5150.tar.bz2
plus-010455ce5fc860f41448537e14f30a8453ce5150.tar.xz
plus-010455ce5fc860f41448537e14f30a8453ce5150.zip
If map too small, clear screen before drawing map
Clear map not works on software renderer.
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/manaplus/gui/viewport.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/progs/manaplus/gui/viewport.cpp b/src/progs/manaplus/gui/viewport.cpp
index 7552ab8be..73a8db226 100644
--- a/src/progs/manaplus/gui/viewport.cpp
+++ b/src/progs/manaplus/gui/viewport.cpp
@@ -1147,4 +1147,6 @@ void Viewport::videoResized()
{
updateMidVars();
updateMaxVars();
+ if (mMap != nullptr)
+ mMap->screenResized();
}