mirror of https://github.com/fltk/fltk
Update Doxygen doc of Fl_Gl_Window::draw() for HighDPI support
This commit is contained in:
parent
f55729ed32
commit
8540db95d8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue