summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r--src/gui/widgets/window.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 657fbcd88..0898549ec 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -374,7 +374,6 @@ void Window::draw(Graphics *graphics)
// Draw title
if (mShowTitle)
{
- graphics->setColorAll(mForegroundColor, mForegroundColor2);
int x;
switch (mCaptionAlign)
{
@@ -389,7 +388,11 @@ void Window::draw(Graphics *graphics)
x = mCaptionOffsetX - mCaptionFont->getWidth(mCaption);
break;
}
- mCaptionFont->drawString(graphics, mCaption, x, mCaptionOffsetY);
+ mCaptionFont->drawString(graphics,
+ mForegroundColor,
+ mForegroundColor2,
+ mCaption,
+ x, mCaptionOffsetY);
}
if (update)