mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Fix "Colormatic" splash text rendering as single color
Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
This commit is contained in:
parent
7a4f57e3e6
commit
1f8f90894b
|
|
@ -338,7 +338,9 @@ void Font::draw(const wstring &str, bool dropShadow)
|
|||
if (colorN < 0 || colorN > 15) colorN = 15;
|
||||
if (dropShadow) colorN += 16;
|
||||
int color = colors[colorN];
|
||||
t->end();
|
||||
glColor3f((color >> 16) / 255.0F, ((color >> 8) & 255) / 255.0F, (color & 255) / 255.0F);
|
||||
t->begin();
|
||||
}
|
||||
i += 1;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue