diff options
| author | Manolo Gouy <Manolo> | 2010-04-13 19:56:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-04-13 19:56:23 +0000 |
| commit | 9ae353c6be98b0c697eb5229d3d659c59111b72b (patch) | |
| tree | c44497b77f772843d1182eec68c63828ce567d92 | |
| parent | 96c392763edb530b305ebc7517281d28b1862b29 (diff) | |
gl_draw.cxx (Mac-specific): fixed another bad use of non null-terminated string.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/gl_draw.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx index e9c34c12c..432774ea5 100644 --- a/src/gl_draw.cxx +++ b/src/gl_draw.cxx @@ -493,7 +493,7 @@ int gl_texture_fifo::compute_texture(const char* str, int n) GLfloat colors[4]; glGetFloatv(GL_CURRENT_COLOR, colors); fl_color(colors[0]*255, colors[1]*255, colors[2]*255); - fl_draw(str, 0, fifo[current].height - fl_descent()); + fl_draw(str, n, 0, fifo[current].height - fl_descent()); //put this bitmap in a texture glPushAttrib(GL_TEXTURE_BIT); glBindTexture (GL_TEXTURE_RECTANGLE_EXT, fifo[current].texName); |
