Skip to content
Snippets Groups Projects
Commit 9ae353c6 authored by Manolo Gouy's avatar Manolo Gouy
Browse files

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
parent 96c39276
No related branches found
No related tags found
No related merge requests found
...@@ -493,7 +493,7 @@ int gl_texture_fifo::compute_texture(const char* str, int n) ...@@ -493,7 +493,7 @@ int gl_texture_fifo::compute_texture(const char* str, int n)
GLfloat colors[4]; GLfloat colors[4];
glGetFloatv(GL_CURRENT_COLOR, colors); glGetFloatv(GL_CURRENT_COLOR, colors);
fl_color(colors[0]*255, colors[1]*255, colors[2]*255); 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 //put this bitmap in a texture
glPushAttrib(GL_TEXTURE_BIT); glPushAttrib(GL_TEXTURE_BIT);
glBindTexture (GL_TEXTURE_RECTANGLE_EXT, fifo[current].texName); glBindTexture (GL_TEXTURE_RECTANGLE_EXT, fifo[current].texName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment