← Back to team overview

kicad-developers team mailing list archive

Re: [GAL] Added fixed-width line rendering


Hi Oliver,

I have mixed feelings about this patch. This approach is ok for Cairo
and non-cached targets in OpenGL, for cached targets it will still draw
a line that is dependent on the zoom level.

Ideally, the problem could be solved with shaders. I can give you some
hints if you want to tackle this, otherwise I may try to code it myself
next week.


On 06/22/2017 03:44 PM, Oliver Walters wrote:
> This patch adds zoom-independent fixed-width line rendering to GAL.
> GAL drawing tools can call SetFixedLineWidth( width ) to draw a line that
> is the same width on screen (pixels) independent of the zoom level.
> I have implemented this in two locations:
> a) PCB_BRIGHTBOX - the selection clarification bright-box is very thin at
> wide zoom, and very wide at narrow zoom. Now it is 3 pixels thick at all
> zoom
> b) RATS_NEST - Increased this to 2 pixels wide, it is much easier to see!
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

Follow ups