summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-12-18 16:34:59 +0000
committerManolo Gouy <Manolo>2017-12-18 16:34:59 +0000
commit0a4dcddfcde496a6605637c5976951220dc3163b (patch)
tree7ca41de51ce44a26ac98f047d497f22ff5997c4a /src
parentd361de4d0d3bc346021beaab053b30dcfc7fb153 (diff)
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
Diffstat (limited to 'src')
-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 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 <FL/glu.h> // for gluUnProject() and gluCheckExtension()