matthiasm wrote:
> 
> 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... .

What might be useful is to define "0" as the 1-pixel-wide, aliased
version, while any other value produced anti-aliased output.  0-width
lines on Mac OS X are otherwise invisible since Quartz does not support
1 pixel/dot wide rendering that way like PostScript or Cairo does...

> 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/
> 
> 


-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to