summaryrefslogtreecommitdiff
path: root/src/resources/map/mapitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map/mapitem.cpp')
-rw-r--r--src/resources/map/mapitem.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/resources/map/mapitem.cpp b/src/resources/map/mapitem.cpp
index 146003040..3037dfb4a 100644
--- a/src/resources/map/mapitem.cpp
+++ b/src/resources/map/mapitem.cpp
@@ -165,8 +165,12 @@ void MapItem::draw(Graphics *const graphics, const int x, const int y,
Font *const font = gui->getFont();
if (font)
{
- graphics->setColor(userPalette->getColor(UserPalette::BEING));
- font->drawString(graphics, mName, x, y);
+ const Color &color = userPalette->getColor(UserPalette::BEING);
+ font->drawString(graphics,
+ color,
+ color,
+ mName,
+ x, y);
}
}
BLOCK_END("MapItem::draw")