From 0a4dcddfcde496a6605637c5976951220dc3163b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 18 Dec 2017 16:34:59 +0000 Subject: Fix bug when drawing text with Fl_OpenGL_Graphics_Driver and scaled GUI. The bug appeared in test/cube where the "Text" string was mispositioned when the app was rescaled. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12597 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/gl_draw.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx index b7328837b..22e629be2 100644 --- a/src/gl_draw.cxx +++ b/src/gl_draw.cxx @@ -377,7 +377,7 @@ void gl_draw_image(const uchar* b, int x, int y, int w, int h, int d, int ld) { but not text font, and only ASCII characters can be drawn. */ -static int gl_scale = 1; // set to 2 for high resolution Fl_Gl_Window +static float gl_scale = 1; // set to 2 for high resolution Fl_Gl_Window static int has_texture_rectangle = 0; // true means GL_EXT_texture_rectangle is available #include // for gluUnProject() and gluCheckExtension() -- cgit v1.2.3