From 99d78d61380048bbcec2f8364f5d876681fd982e Mon Sep 17 00:00:00 2001 From: Caladius Date: Sat, 7 Dec 2024 11:40:13 -0500 Subject: [PATCH] Update Grayscale8bpp to remove black backgrounds from Digit Textures (#735) * Update Grayscale8bpp to remove black backgrounds from Digit Textures in SoH * Adding Grayscale4bpp as well. --- src/window/gui/Gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window/gui/Gui.cpp b/src/window/gui/Gui.cpp index 4e7af4186..b181b9a93 100644 --- a/src/window/gui/Gui.cpp +++ b/src/window/gui/Gui.cpp @@ -866,7 +866,7 @@ void Gui::LoadGuiTexture(const std::string& name, const LUS::Texture& res, const texBuffer.push_back(ia); texBuffer.push_back(ia); texBuffer.push_back(ia); - texBuffer.push_back(0xFF); + texBuffer.push_back(ia); } break; } @@ -878,13 +878,13 @@ void Gui::LoadGuiTexture(const std::string& name, const LUS::Texture& res, const texBuffer.push_back(ia4); texBuffer.push_back(ia4); texBuffer.push_back(ia4); - texBuffer.push_back(0xFF); + texBuffer.push_back(ia4); ia4 = ((b & 0xF) * 0xFF) / 0b1111; texBuffer.push_back(ia4); texBuffer.push_back(ia4); texBuffer.push_back(ia4); - texBuffer.push_back(0xFF); + texBuffer.push_back(ia4); } break; }