MacArthur, Ian (SELEX GALILEO, UK) schrieb:
>
>> 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?

I knew this doc, but I didn't understand it as:

 > 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)
before you set a colour or another fl_line_style(0).

To me it's not telling clearly, that _every_single_ set of linestyle 
must be reset to default and it is not possible, to change linestyle 
several times and then reset in general.

Might be caused of less text comprehension skills of a non native 
english reader... ;o)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to