summaryrefslogtreecommitdiff
path: root/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx')
-rw-r--r--src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
index 476d654f3..90036b971 100644
--- a/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
@@ -19,7 +19,6 @@
#include <FL/platform.H>
#include "../../Fl_Gl_Choice.H"
#include "../../Fl_Screen_Driver.H"
-#include "../../Fl_Window_Driver.H"
#include "Fl_X11_Gl_Window_Driver.H"
# include <GL/glx.h>
# if ! defined(GLX_VERSION_1_3)
@@ -347,7 +346,7 @@ void Fl_X11_Gl_Window_Driver::before_show(int&) {
float Fl_X11_Gl_Window_Driver::pixels_per_unit()
{
- int ns = Fl_Window_Driver::driver(pWindow)->screen_num();
+ int ns = pWindow->screen_num();
return Fl::screen_driver()->scale(ns);
}