summaryrefslogtreecommitdiff
path: root/src/gl_draw.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-01-09 16:40:38 +0000
committerManolo Gouy <Manolo>2011-01-09 16:40:38 +0000
commit7cc7abbd12000e17a3cca171a4adba5dec61709b (patch)
tree208a82ac1cdfb15053d22465afe34454302c74a9 /src/gl_draw.cxx
parent2dadc8cb543a852726a1f7791b80b1e9e93b5eb6 (diff)
Removed compilation warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/gl_draw.cxx')
-rw-r--r--src/gl_draw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx
index 586df6a18..8086afa09 100644
--- a/src/gl_draw.cxx
+++ b/src/gl_draw.cxx
@@ -485,7 +485,7 @@ int gl_texture_fifo::compute_texture(const char* str, int n)
fl_fontsize = gl_fontsize;
GLfloat colors[4];
glGetFloatv(GL_CURRENT_COLOR, colors);
- fl_color(colors[0]*255, colors[1]*255, colors[2]*255);
+ fl_color((uchar)(colors[0]*255), (uchar)(colors[1]*255), (uchar)(colors[2]*255));
fl_draw(str, n, 0, fifo[current].height - fl_descent());
//put this bitmap in a texture
glPushAttrib(GL_TEXTURE_BIT);