summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Window.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-13 08:09:01 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-13 08:09:01 +0200
commit8540db95d8d6c7350d983196e0d329b2087ddee8 (patch)
tree9159837519f6a8d9af1c8a947bbb2fba3ca77883 /src/Fl_Gl_Window.cxx
parentf55729ed325b8f888ce17b778a1f063fc2a2e220 (diff)
Update Doxygen doc of Fl_Gl_Window::draw() for HighDPI support
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
-rw-r--r--src/Fl_Gl_Window.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index be0c95a5a..dc031d0e6 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -383,7 +383,7 @@ void Fl_Gl_Window::draw_overlay() {}
void mywindow::draw() {
if (!valid()) {
glLoadIdentity();
- glViewport(0,0,w(),h());
+ glViewport(0,0,pixel_w(),pixel_h());
glOrtho(-w(),w(),-h(),h(),-1,1);
}
// Clear screen