summaryrefslogtreecommitdiff
path: root/src/graphics/OpenGLDrawMethods.inc
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-25 10:47:53 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-25 10:47:53 (GMT)
commit998f11451f266b71249fdf2beef3108fcf524a69 (patch)
tree94d363d0c090128eb946eed9e5edc0dce7d6c78c /src/graphics/OpenGLDrawMethods.inc
parent6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d (diff)
downloadpowder-998f11451f266b71249fdf2beef3108fcf524a69.zip
powder-998f11451f266b71249fdf2beef3108fcf524a69.tar.gz
\x0E resets text colour to one previously set by \b
Diffstat (limited to 'src/graphics/OpenGLDrawMethods.inc')
-rw-r--r--src/graphics/OpenGLDrawMethods.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphics/OpenGLDrawMethods.inc b/src/graphics/OpenGLDrawMethods.inc
index cd1a350..8d94a14 100644
--- a/src/graphics/OpenGLDrawMethods.inc
+++ b/src/graphics/OpenGLDrawMethods.inc
@@ -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];