summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland
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/Wayland
parent3ba09047e2c9a8d1d2567dd6e6e5c1a911bad6e1 (diff)
Remove use of class Fl_Window_Driver inside libfltk_gl
Diffstat (limited to 'src/drivers/Wayland')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
index 3f91d0cbd..2866e02d9 100644
--- a/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Gl_Window_Driver.cxx
@@ -301,7 +301,7 @@ void Fl_Wayland_Gl_Window_Driver::make_current_before() {
float Fl_Wayland_Gl_Window_Driver::pixels_per_unit()
{
- int ns = Fl_Window_Driver::driver(pWindow)->screen_num();
+ int ns = pWindow->screen_num();
int wld_scale = pWindow->shown() ? fl_wl_xid(pWindow)->scale : 1;
return wld_scale * Fl::screen_driver()->scale(ns);
}