On 21.12.2008, at 13:14, Albrecht Schlosser wrote: > APPLE_QUARTZ: CGContextStrokeRect() > > Interesting point: For Quartz antialiasing is switched off explicitly, > if (and only if) the current line width is 1.0f (I'm guessing this > from > reading the code, but it seems to be obvious). [BTW.: And it is > unconditionally set to true afterwards, which might be another bug, if > it was false before.]
Yes, when I originally ported to Quartz, I wanted to get Box drawing correctly, but still allow for antialiasing somehow. Since no API for antialiasing exists (yet) in FLTK, I used the 1-pixel trick. I assume that this is the time to introduce an API for antialiasing... . You will also find some source code for "unittest.cxx" in the "test" directory. The idea was to verify pixelwise drawing between platforms, but was never finished. Maybe another item that would be useful to revive. Matthias ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

