summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp
index c28b0a239..0de19f886 100644
--- a/src/flooritem.cpp
+++ b/src/flooritem.cpp
@@ -162,10 +162,12 @@ void FloorItem::draw(Graphics *const graphics,
{
if (font && mAmount > 1)
{
-// graphics->setColor(Color(255, 255, 255, 100));
- graphics->setColor(userPalette->getColor(
- UserPalette::FLOOR_ITEM_TEXT));
- font->drawString(graphics, toString(mAmount), x, y);
+ const Color &color = userPalette->getColor(
+ UserPalette::FLOOR_ITEM_TEXT);
+ font->drawString(graphics,
+ color, color,
+ toString(mAmount),
+ x, y);
}
}
BLOCK_END("FloorItem::draw")