summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Window.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-07-03 17:38:20 +0000
committerManolo Gouy <Manolo>2017-07-03 17:38:20 +0000
commit99615372a6ae089b7eac3821b321d80ce8f81332 (patch)
treefc08cf74abf2e2229c0a885296dcd9cf5f669244 /src/Fl_Gl_Window.cxx
parent8dccfc88386561782d9b78900b283cedad2e59bb (diff)
Fix Fl_WinAPI_Gl_Window_Driver::pixels_per_unit() when on secondary monitor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
-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);
}