hey Greg,

as for me, using 2 rect. with 1 pixel width fixed it. :)

ty,
jan


On 2008-12-19, Greg Ercolano <[email protected]> wrote:
> I pasted that into fltk-1.3.x on win/linux/mac.
>
> Looked good on win+linux; the lower right corner of the border
> was a sharp corner, no pixel hole at the extreme corner,
> and no weird artifacts on the vertical edge.
>
> On the mac, I do get the weird artifacts similar to your pic.
>
> These tests are all with the default build of fltk-1.3.x.
>
> On the mac, it would appear the border is being drawn as an
> antialiased line (?), and because of that is maybe revealing
> an extra vertical pixel row of your graph because part of the
> border is 'transparent' (due to the anti aliasing).
>
> This might be the fl_line_sytle(FL_SOLID, 2) call causing a
> floating point antialiased rectangle to be drawn, where the pixel
> centers might be off by 0.5 or something. Macs are pretty smart
> about antialiased lines and stuff.
>
> As a workaround, maybe don't change the fl_line_style(), and
> draw two separate fl_rect()s to achieve the two pixel thick border.
>
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to