\x0E resets text colour to one previously set by \b

This commit is contained in:
Simon Robertshaw 2012-07-25 11:47:53 +01:00
parent 6b08d1e2f9
commit 998f11451f
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,9 @@ int Graphics::drawtext(int x, int y, const char *s, int r, int g, int b, int a)
else if (*s == '\x0F')
{
if(!s[1] || !s[2] || !s[3]) break;
oR = r;
oG = g;
oB = b;
r = s[1];
g = s[2];
b = s[3];

View File

@ -19,6 +19,9 @@ int PIXELMETHODS_CLASS::drawtext(int x, int y, const char *s, int r, int g, int
else if (*s == '\x0F')
{
if(!s[1] || !s[2] || !s[3]) break;
oR = r;
oG = g;
oB = b;
r = s[1];
g = s[2];
b = s[3];