summaryrefslogtreecommitdiff
path: root/src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-27 16:51:35 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-27 16:51:35 +0200
commit3225afaeecc1a1f0a54cab6f60be485a0352606c (patch)
treea4e7ef381a11a71c05d75c6bc3a2033ed95943b3 /src/drivers/X11/Fl_X11_Gl_Window_Driver.cxx
parent3ba09047e2c9a8d1d2567dd6e6e5c1a911bad6e1 (diff)
Remove use of class Fl_Window_Driver inside libfltk_gl
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);
}