imacarthur wrote:
> Anyway, attached below are two files, simplified versions of
> Rodrigo's example, one using the "offscreen" mode ..
Yep, that works for me.
I'd say the key change you made was removing make_current()
from his draw(); that's surely wrong to have /inside/ a draw()
call, as the drawing context should already be setup by fltk,
and one shouldn't be messing with that inside draw().
I see you also cleaned up stuff I didn't notice, removing the
wincb() which would have only been invoked when the window was
closed, and the draw() calls that were in it are something that
are not recommended, but if used, the make_current() call should
have /only/ been there, and not inside the draw() code.
If I take your working cleaned up example and put the make_current()
back inside draw(), that breaks it again. So pretty sure that was
the key change.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk