mirror of
https://github.com/izzy2lost/libultraship.git
synced 2026-06-19 01:16:13 -07:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user