diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-12 17:54:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-12 17:54:04 +0300 |
commit | 92ddb0de073b591a3f0833406a02c063cff43002 (patch) | |
tree | 02b66d5a55126123178b1b3e764a4a3637855d93 /src/gui/widgets/characterdisplay.cpp | |
parent | d54658ddf491d4bb7daef2a901a63e6f805dcdf2 (diff) | |
download | plus-92ddb0de073b591a3f0833406a02c063cff43002.tar.gz plus-92ddb0de073b591a3f0833406a02c063cff43002.tar.bz2 plus-92ddb0de073b591a3f0833406a02c063cff43002.tar.xz plus-92ddb0de073b591a3f0833406a02c063cff43002.zip |
Set bigger size in char selection dialog if screen is big.
Diffstat (limited to 'src/gui/widgets/characterdisplay.cpp')
-rw-r--r-- | src/gui/widgets/characterdisplay.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/characterdisplay.cpp b/src/gui/widgets/characterdisplay.cpp index bff28b374..23a22fbbb 100644 --- a/src/gui/widgets/characterdisplay.cpp +++ b/src/gui/widgets/characterdisplay.cpp @@ -50,7 +50,10 @@ CharacterDisplay::CharacterDisplay(const Widget2 *const widget, mName->setAlignment(Graphics::CENTER); mName->adjustSize(); - setWidth(80); + if (mainGraphics->getWidth() > 800) + setWidth(120); + else + setWidth(80); setHeight(120); } |