I've managed to have Fl_Clock printed correctly on generated pdf using a  
flag on fl_vertex.cxx "fl_is_pdf" and changing the angle sign of the  
argument to fl_rotate when generating pdfs.

But doing this I could see that the actual implementation isn't thread  
safe, in fact only one thread can use the fl_vertex.cxx functions at a  
time and should leave the matrix stack as it was before.

Probably pdf, postcript and direct printing will be executed as background  
tasks or independent threads on some applications to don't block the user  
interface but the actual implementation doesn't permit it.

Probably everything on fl_vertex.cxx should be non static members of  
Fl_Graphics_Driver class, this way multithread using different derived  
Fl_Graphics_Driver can work properly.

Can this be made ?
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to