summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Window_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-19 13:03:49 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-19 13:03:49 +0200
commitebbee5301b975f2afcf22a0649b3ba7724c78089 (patch)
tree89711e685a15efb557c96e8e93d6044fdb7b2f94 /src/Fl_Gl_Window_Driver.H
parent698fe39ff16df2b7440df3cdbb969cba09798935 (diff)
macOS: simpler handling of GL windows when first displayed.
tested on macOS versions 10.3, 10.6, 10.9, 10.14
Diffstat (limited to 'src/Fl_Gl_Window_Driver.H')
-rw-r--r--src/Fl_Gl_Window_Driver.H10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Gl_Window_Driver.H b/src/Fl_Gl_Window_Driver.H
index 2b1875596..bc0de9ebe 100644
--- a/src/Fl_Gl_Window_Driver.H
+++ b/src/Fl_Gl_Window_Driver.H
@@ -52,8 +52,8 @@ public:
static Fl_Gl_Window_Driver *newGlWindowDriver(Fl_Gl_Window *w);
static Fl_Gl_Window_Driver *global();
virtual float pixels_per_unit() {return 1;}
- virtual void before_show(int& need_redraw) {}
- virtual void after_show(int need_redraw) {}
+ virtual void before_show(int& need_after) {}
+ virtual void after_show() {}
virtual void invalidate();
virtual int mode_(int m, const int *a) {return 0;}
virtual void make_current_before() {}
@@ -105,8 +105,8 @@ class Fl_Cocoa_Gl_Window_Driver : public Fl_Gl_Window_Driver {
friend class Fl_OpenGL_Display_Device;
Fl_Cocoa_Gl_Window_Driver(Fl_Gl_Window *win) : Fl_Gl_Window_Driver(win) {}
virtual float pixels_per_unit();
- virtual void before_show(int& need_redraw);
- virtual void after_show(int need_redraw);
+ virtual void before_show(int& need_after);
+ virtual void after_show();
virtual int mode_(int m, const int *a);
virtual void make_current_before();
virtual void swap_buffers();
@@ -161,7 +161,7 @@ class Fl_X11_Gl_Window_Driver : public Fl_Gl_Window_Driver {
friend class Fl_Gl_Window_Driver;
Fl_X11_Gl_Window_Driver(Fl_Gl_Window *win) : Fl_Gl_Window_Driver(win) {}
virtual float pixels_per_unit();
- virtual void before_show(int& need_redraw);
+ virtual void before_show(int& need_after);
virtual int mode_(int m, const int *a);
virtual void swap_buffers();
virtual void resize(int is_a_resize, int w, int h);