From e8c09e7b36772e2b036962ef9bd827e72ab961d2 Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Sun, 14 Jun 2020 10:00:41 -0700 Subject: [PATCH] Font color now uses g_ColorXlat --- code/REDALERT/NEWBLIT.CPP | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/REDALERT/NEWBLIT.CPP b/code/REDALERT/NEWBLIT.CPP index b8704e5..653884d 100644 --- a/code/REDALERT/NEWBLIT.CPP +++ b/code/REDALERT/NEWBLIT.CPP @@ -6,6 +6,7 @@ #include "Image.h" extern byte backbuffer_palette[768]; +extern uint8_t g_ColorXlat[16]; void GL_RenderImage(Image_t* image, int x, int y, int width, int height) { ImVec2 mi(x, y); @@ -24,6 +25,7 @@ void GL_FillRect(int color, int x, int y, int width, int height) { void GL_DrawText(int color, int x, int y, char* text) { ImVec2 pos(x, y); + color = g_ColorXlat[color % 15]; float r = backbuffer_palette[(color * 3) + 0] / 255.0f; float g = backbuffer_palette[(color * 3) + 1] / 255.0f; float b = backbuffer_palette[(color * 3) + 2] / 255.0f;