From 92ddb0de073b591a3f0833406a02c063cff43002 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 May 2013 17:54:04 +0300 Subject: Set bigger size in char selection dialog if screen is big. --- src/gui/widgets/characterdisplay.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets') 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); } -- cgit v1.2.3-70-g09d2