FLTK logo

Re: [fltk.general] Window maximizing with Fl_Gl_Window

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Window maximizing with Fl_Gl_Window Manolo Feb 08, 2023  
 
You could try to add this static function

static void delayed_redraw(void *data) {
  ((Fl_Window *)data)->redraw();
}

and to override your GL3 window's resize method as follows:

  void resize(int x, int y, int w, int h)  override  {
    Fl_Gl_Window::resize(x, y, w, h);
    Fl::add_timeout(0.01, delayed_redraw, this);
  }

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/15a32539-ca3c-46c5-99d5-ca124b23c857n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.