Implemented RmlUi hack to replace color parsing so it uses 0-1 alpha instead of 0-255

This commit is contained in:
Mr-Wiseguy
2024-01-06 16:08:15 -05:00
parent 8e3c163594
commit 8510bb9109
4 changed files with 173 additions and 0 deletions
+3
View File
@@ -758,6 +758,9 @@ void init_hook(RT64::RenderInterface* interface, RT64::RenderDevice* device) {
Rml::Initialise();
// Apply the hack to replace RmlUi's default color parser with one that conforms to HTML5 alpha parsing for SASS compatibility
recomp::apply_color_hack();
int width, height;
SDL_GetWindowSizeInPixels(window, &width, &height);