summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-01 23:16:44 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-01 23:16:44 +0300
commitd0d120837ccf0a20c6d43a1193f257cfaeb194f6 (patch)
tree7efe3d94117946437d52929e69dfc2f0f31737a5 /src/gui/widgets/window.cpp
parentec552e6430ac86b1234c9a7798bf4e028a3c78c0 (diff)
downloadmv-d0d120837ccf0a20c6d43a1193f257cfaeb194f6.tar.gz
mv-d0d120837ccf0a20c6d43a1193f257cfaeb194f6.tar.bz2
mv-d0d120837ccf0a20c6d43a1193f257cfaeb194f6.tar.xz
mv-d0d120837ccf0a20c6d43a1193f257cfaeb194f6.zip
Change trade window font to secure font if need.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 2b6c4ef58..bdf3f5b7c 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -94,6 +94,7 @@ Window::Window(const std::string &caption, bool modal, Window *parent,
setVisible(false);
addWidgetListener(this);
+ mCaptionFont = getFont();
}
Window::~Window()
@@ -154,7 +155,7 @@ void Window::draw(gcn::Graphics *graphics)
if (mShowTitle)
{
g->setColor(Theme::getThemeColor(Theme::TEXT));
- g->setFont(getFont());
+ g->setFont(mCaptionFont);
g->drawText(getCaption(), 7, 5, gcn::Graphics::LEFT);
}