diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/glut_compatability.cxx | 2 | ||||
| -rw-r--r-- | src/glut_font.cxx | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/glut_compatability.cxx b/src/glut_compatability.cxx index 85ea3cb6d..373beb438 100644 --- a/src/glut_compatability.cxx +++ b/src/glut_compatability.cxx @@ -63,6 +63,8 @@ void Fl_Glut_Window::draw() { indraw = 1; if (!reshaped[number] ) { // ignore the first show event on glutCreateWindow + // avoid flickering: + glClear(GL_COLOR_BUFFER_BIT); reshaped[number] = 1; } else { if( !valid() || reshaped[number] == 1 ) { diff --git a/src/glut_font.cxx b/src/glut_font.cxx index 071767cdd..05c048e7c 100644 --- a/src/glut_font.cxx +++ b/src/glut_font.cxx @@ -55,7 +55,8 @@ int glutBitmapWidth(void* font, int character) { int glutBitmapLength(void *font, const unsigned char *string) { gl_font(((Glut_Bitmap_Font *)font)->font,((Glut_Bitmap_Font *)font)->size); - return int(gl_width((const char*)string)+.5); + const char *s = (const char*)string; + return int(gl_width(s)+.5); } #endif |
