Sanel Zukan wrote: > Just to ask about default sizes for Image objects. As it can be seen, > now default values are w:12, h:12. > > I didn't notice this until recently, and noticed also that older > revisions contains w:-1, h:-1 pair. > > If I can ask, why default values are 12? Magic number or...?
The -1 was used to indicate that measure() was never called. With recent changes it uses a different way to determine this. The code was also looking for -1 (indicating some error) and changing it to 12, but since the -1 value is not used for anything else, it is equivalent to initialize it to 12. The idea is that if it screws up, it will draw a 12x12 square in the current color, which is probably better than drawing nothing. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
