MacArthur, Ian (SELEX GALILEO, UK) schrieb:
>
> I had the impression, from looking at the example you posted earlier,
> that you were maybe setting the color after setting the line_style and
> were therefore perhaps triggering this Win32 "feature" in your code.
The example is missing a line break and you are right, it could be more
clearer. It is minimum code, after that the rest of app shows weird
behaviour.
void Fl_Spectrum::draw()
{
Fl_Box::draw();
fl_color(FL_BLACK);
fl_line_style(FL_SOLID, 2);
// at this place first drawing starts and I took care of sequence
{....}
fl_color(FL_GRAY);
fl_line_style(FL_SOLID, 2);
// at this place second drawing starts and I took care of sequence
{....}
fl_line_style(0); // Reset to default doesn't work for both settings
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk