From d0d120837ccf0a20c6d43a1193f257cfaeb194f6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Jun 2011 23:16:44 +0300 Subject: Change trade window font to secure font if need. --- src/gui/widgets/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/window.cpp') 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); } -- cgit v1.2.3-70-g09d2