> This is the sequence to cause the problem. Setting linestyle 
> only once 
> or without changing colour works as expected. Thinking about it, I 
> inserted fl_line_style(0) also twice (>> ) and got rid of the problem.
> Seems to me, that fl_line_style is pushing a style and needs a pop.

Hmm, I think this is in the docs; at least in the fltk-1.1.10 docs it
says:

<quote>
void fl_line_style(int style, int width=0, char* dashes=0)
Set how to draw lines (the "pen"). If you change this it is your
responsibility to set it back to the default with fl_line_style(0). 

Note: 
Because of how line styles are implemented on WIN32 systems, you must
set the line style after setting the drawing color. If you set the color
after the line style you will lose the line style settings! 
</quote> 

Does that describe your use-case? 



SELEX Galileo Ltd
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.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to