summaryrefslogtreecommitdiff
path: root/src/graphics/OpenGLDrawMethods.inl
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-14 15:01:57 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-14 15:01:57 (GMT)
commit7ccb7e53fe941a4b076bc4856dfba0c0476af249 (patch)
treef3e7b9f938258e6ac8e558dfc717baeae65a7d69 /src/graphics/OpenGLDrawMethods.inl
parent8604b3054858fbeed30b82120bb1f401c50fe542 (diff)
downloadpowder-7ccb7e53fe941a4b076bc4856dfba0c0476af249.zip
powder-7ccb7e53fe941a4b076bc4856dfba0c0476af249.tar.gz
Show some info when selecting stamps, #104
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')