From 20a530182719a356135ba91d1b453ae7fac500f4 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Fri, 3 May 2013 22:26:02 +0300
Subject: Change a bit some windows sizes for drawing big size fonts.

---
 src/gui/widgets/characterdisplay.cpp    | 2 +-
 src/gui/widgets/characterviewnormal.cpp | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

(limited to 'src/gui/widgets')

diff --git a/src/gui/widgets/characterdisplay.cpp b/src/gui/widgets/characterdisplay.cpp
index 35af15efc..bff28b374 100644
--- a/src/gui/widgets/characterdisplay.cpp
+++ b/src/gui/widgets/characterdisplay.cpp
@@ -51,7 +51,7 @@ CharacterDisplay::CharacterDisplay(const Widget2 *const widget,
     mName->adjustSize();
 
     setWidth(80);
-    setHeight(100);
+    setHeight(120);
 }
 
 void CharacterDisplay::setCharacter(Net::Character *const character)
diff --git a/src/gui/widgets/characterviewnormal.cpp b/src/gui/widgets/characterviewnormal.cpp
index 7422f25d5..f197ea343 100644
--- a/src/gui/widgets/characterviewnormal.cpp
+++ b/src/gui/widgets/characterviewnormal.cpp
@@ -20,6 +20,8 @@
 
 #include "gui/widgets/characterviewnormal.h"
 
+#include "configuration.h"
+
 #include "gui/widgets/characterdisplay.h"
 #include "gui/widgets/characterviewsmall.h"
 
@@ -46,7 +48,10 @@ CharacterViewNormal::CharacterViewNormal(CharSelectDialog *const widget,
     }
     const CharacterDisplay *const firtChar = (*mCharacterEntries)[0];
     setWidth(firtChar->getWidth() * 5 + mPadding * 2);
-    setHeight(200);
+    if (config.getIntValue("fontSize") > 16)
+        setHeight(250);
+    else
+        setHeight(220);
 }
 
 CharacterViewNormal::~CharacterViewNormal()
-- 
cgit v1.2.3-70-g09d2