From 0ae50c25b11eef204618e3b169ad2582c334561a Mon Sep 17 00:00:00 2001 From: Human Gamer <39096122+HumanGamer@users.noreply.github.com> Date: Sun, 25 Sep 2022 00:41:17 -0500 Subject: [PATCH] Fixed text color on game end screen --- engine/source/gui/controls/guiTextListCtrl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/source/gui/controls/guiTextListCtrl.cpp b/engine/source/gui/controls/guiTextListCtrl.cpp index 3b57ec7e..2313739e 100644 --- a/engine/source/gui/controls/guiTextListCtrl.cpp +++ b/engine/source/gui/controls/guiTextListCtrl.cpp @@ -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); @@ -344,6 +347,8 @@ void GuiTextListCtrl::onRenderCell(Point2I offset, Point2I cell, bool selected, GFX->drawBitmapStretch(texture, rect); } + + GFX->setBitmapModulation(saveColor); } else {