On 26 Feb 2012, at 17:22, Greg Ercolano wrote:

> 
>> You can call Fl_Window::make_current() to do incremental update of a widget.
> 
>       I usually avoid that last item to keep drawing code in draw()
>       methods only.

Yes, it is not reliable, in so far as, if you ever have to "refresh" the entire 
widget, e.g. due to damage from another source, there is no way of retaining 
the incrementally drawn buffer, so everything tends to get lost at that point. 
Which rather defeats the point of incremental drawing...

I find that fl_offscreen is the way to go for this sort of incremental update 
of a widget, in general. That, or retaining a list of vectors and redrawing the 
entire scene from that "properly"...




_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to