diff options
Diffstat (limited to 'src/gl_draw.cxx')
| -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 6f88d0637..1c31f4174 100644 --- a/src/gl_draw.cxx +++ b/src/gl_draw.cxx @@ -520,7 +520,7 @@ static gl_texture_fifo *gl_fifo = NULL; // points to the texture pile class inst // draws a utf8 string using pre-computed texture if available static void gl_draw_textures(const char* str, int n) { - gl_scale = Fl_X::resolution_scaling_factor(Fl_Window::current()); + gl_scale = Fl_Window::current()->as_gl_window()->pixels_per_unit(); //fprintf(stderr,"gl_scale=%d\n",gl_scale); if (! gl_fifo) gl_fifo = new gl_texture_fifo(); if (!gl_fifo->textures_generated) { |
