matthiasm schrieb:

> The matrix is not preserved across multiple ::draw() calls. You may have 
> been lucky that it worked for you, but that would only be a side effect. 
> There is only a single matrix for one instance of FLTK, but not for 
> every widget.
> 

So if I call redraw(), flush() or something I have always to store the 
current matrix if I want to use it later again, because fltk does not 
restore the transformation after the drawing process?
Isnt that a bit confusing?
I think fltk should leave the device as it was before calling draw.
e.g. with winapi:

HPEN oldpen = SelectObject(dc, mypen);
// draw something

SelectObject(dc, oldpen);
// restore device state, so that following draw actions behave as before
// the function call
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to