diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-05 19:10:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-05 19:10:52 +0300 |
commit | 9539093c42bc459aaa1a1053d0e31b03d0839824 (patch) | |
tree | ebeb9bb816ace0c6810f540be71700e95d72477c /src/gui/widgets/characterviewnormal.cpp | |
parent | 466e23ae13e05cc279b5ee05535473e7e1ce2923 (diff) | |
download | manaplus-9539093c42bc459aaa1a1053d0e31b03d0839824.tar.gz manaplus-9539093c42bc459aaa1a1053d0e31b03d0839824.tar.bz2 manaplus-9539093c42bc459aaa1a1053d0e31b03d0839824.tar.xz manaplus-9539093c42bc459aaa1a1053d0e31b03d0839824.zip |
adjust char selection dialog for small screens.
Diffstat (limited to 'src/gui/widgets/characterviewnormal.cpp')
-rw-r--r-- | src/gui/widgets/characterviewnormal.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/widgets/characterviewnormal.cpp b/src/gui/widgets/characterviewnormal.cpp index f197ea343..11b630099 100644 --- a/src/gui/widgets/characterviewnormal.cpp +++ b/src/gui/widgets/characterviewnormal.cpp @@ -48,10 +48,7 @@ CharacterViewNormal::CharacterViewNormal(CharSelectDialog *const widget, } const CharacterDisplay *const firtChar = (*mCharacterEntries)[0]; setWidth(firtChar->getWidth() * 5 + mPadding * 2); - if (config.getIntValue("fontSize") > 16) - setHeight(250); - else - setHeight(220); + setHeight(210 + config.getIntValue("fontSize") * 2); } CharacterViewNormal::~CharacterViewNormal() |