summaryrefslogtreecommitdiff
path: root/src/graphics/OpenGLDrawMethods.inl
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/OpenGLDrawMethods.inl')
-rw-r--r--src/graphics/OpenGLDrawMethods.inl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphics/OpenGLDrawMethods.inl b/src/graphics/OpenGLDrawMethods.inl
index 55b4f21..8392e28 100644
--- a/src/graphics/OpenGLDrawMethods.inl
+++ b/src/graphics/OpenGLDrawMethods.inl
@@ -22,9 +22,9 @@ int PIXELMETHODS_CLASS::drawtext(int x, int y, const char *s, int r, int g, int
oR = r;
oG = g;
oB = b;
- r = s[1];
- g = s[2];
- b = s[3];
+ r = (unsigned char)s[1];
+ g = (unsigned char)s[2];
+ b = (unsigned char)s[3];
s += 3;
}
else if (*s == '\x0E')