diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-08 23:36:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-04-08 23:36:01 +0300 |
commit | 010455ce5fc860f41448537e14f30a8453ce5150 (patch) | |
tree | 95dafb8e18fe3f8ce4a0656866187025695888f9 /src/progs/manaplus | |
parent | 226fea014e24ea69989c7ac2f7428926ec865663 (diff) | |
download | manaverse-010455ce5fc860f41448537e14f30a8453ce5150.tar.gz manaverse-010455ce5fc860f41448537e14f30a8453ce5150.tar.bz2 manaverse-010455ce5fc860f41448537e14f30a8453ce5150.tar.xz manaverse-010455ce5fc860f41448537e14f30a8453ce5150.zip |
If map too small, clear screen before drawing map
Clear map not works on software renderer.
Diffstat (limited to 'src/progs/manaplus')
-rw-r--r-- | src/progs/manaplus/gui/viewport.cpp | 2 |
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(); } |