summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Gl_Window.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index bfea32b23..22e81e946 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -610,7 +610,8 @@ Fl_Gl_Window_Driver *Fl_Gl_Window_Driver::newGlWindowDriver(Fl_Gl_Window *w)
float Fl_WinAPI_Gl_Window_Driver::pixels_per_unit()
{
- return Fl::screen_driver()->scale(0);
+ int ns = pWindow->driver()->screen_num();
+ return Fl::screen_driver()->scale(ns);
}