> > > > I am not opposed to the worker thread not calling the=20 > > redraw method. Though I guess I'm at a loss for how I could=20 > > force it to call after updating the pixel buffer without=20 > > making a call to it from the worker thread. > >=20 > > Well, I think you're okay with calling redraw from the worker thread. > >=20 > > Ian wrote earlier in this thread: > >=20 > > > Do not call redraw(); at all from the helper thread, as it won't > > > do what you want... > >=20 > > I don't know what Ian thought what you would want, but if > > you know that redraw() doesn't draw immediately, but instead > > marks the widget to be redrawn later, and if you wake the > > FLTK main thread with Fl::awake() after redraw(), then I think > > that that should work as expected. > >=20 > > Ian, any comments ? > > I don't know what I meant either.=20 > > I've just spent a little time looking at the code for redraw(), and I > can't see any real reason why it would not be safe to call it from the > worker thread, if you've got the lock first... > > Yet I know I have a worry in the back of my head that there's something > hooky with this...=20 > > If it actually works, I guess that's a good starting place! > > --=20 > Ian > > > > > > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex= > SS14 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** >
Well not all is well. I'm back to my head scratching. The code works exactly as it should in Linux. When I throw it over onto Windows though, back to the same crazy only redrawing when the mouse is moving issue. So, back to the drawing board. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

