Skip to content

Commit

Permalink
Fixed text color on game end screen
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanGamer committed Sep 25, 2022
1 parent 1313c65 commit 0ae50c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engine/source/gui/controls/guiTextListCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ void GuiTextListCtrl::onRenderCell(Point2I offset, Point2I cell, bool selected,

if (index < mColumnBmps.size() && mColumnBmps[index])
{
ColorI saveColor;
GFX->getBitmapModulation(&saveColor);

ColorI bmpMod(255, 255, 255);
GFX->setBitmapModulation(bmpMod);

Expand Down Expand Up @@ -344,6 +347,8 @@ void GuiTextListCtrl::onRenderCell(Point2I offset, Point2I cell, bool selected,

GFX->drawBitmapStretch(texture, rect);
}

GFX->setBitmapModulation(saveColor);
}
else
{
Expand Down

0 comments on commit 0ae50c2

Please sign in to comment.