summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 7026051da..41f6ff760 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -491,9 +491,15 @@ void Game::addWatermark()
{
if (!boldFont || !config.getBoolValue("addwatermark"))
return;
- mainGraphics->setColorAll(theme->getColor(Theme::TEXT, 255),
- theme->getColor(Theme::TEXT_OUTLINE, 255));
- boldFont->drawString(mainGraphics, settings.serverName, 100, 50);
+
+ const Color &color1 = theme->getColor(Theme::TEXT, 255);
+ const Color &color2 = theme->getColor(Theme::TEXT_OUTLINE, 255);
+
+ boldFont->drawString(mainGraphics,
+ color1,
+ color2,
+ settings.serverName,
+ 100, 50);
}
bool Game::createScreenshot()