MacArthur, Ian (SELEX GALILEO, UK) wrote:
> Can anybody give it a whirl with the push/pop removed and see if it is
> correct?
No problem without push/pop.
> Maybe we *do* need to push/pop the clip though, as I'm not sure what
> area of the Fl_Box is marked as damaged when I do this... I assume the
> whole box, though (which is why I think the push/pop is redundant here.)
Fl.cxx, line #1364 ff.:
void Fl_Widget::redraw() {
damage(FL_DAMAGE_ALL);
}
This marks the whole widget to be drawn. When draw() is called
eventually, it's up to the draw() method to decide what to draw - and
*maybe* set the clip range.
However, I didn't look too deep in the code before to know what you
wanted to achieve, so I just added the obvious fl_push_clip() call to
"repair" the code.
> The wisdom of others is sought.
<OT>
Is this wisdom? ;-)
[ maybe my lack of knowing details of the English language makes me
translate wisdom wrong, but I would rather call it knowledge - always
willing to learn, though ]
</OT>
Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk