[email protected] wrote:
> [..]
>> {return int(Fl_Slider::value((double)p));}
>
> Wow, that's a lot of typing to say { return Fl_Slider::value(p); }
I think the intention is to make it clear there's int->double
and double->int conversions going on there. (Fl_Scrollbar::value()
takes and returns an int, whereas Fl_Valuator takes/returns doubles)
Pretty sure that int() is needed to lop off the mantissa from the
double return value to prevent the compiler from moaning about
"possible data loss".,
>> (sigh) I don't think a cup of coffee will wake up those braincells
>> either, but I'll give it a try in a few minutes. (yawn)
>
> Coffee is excellent software fuel.
Yes. Every so often I have to kick though, else I have to up the
dosage and get the shakes.
Kicking sucks; it means a day of headaches and being sleepy.
I usually kick on saturdays.. then monday I can hit the stuff
again and it works twice as well.
Sounds like crack addict I know, but could be worse, could be crack.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk