kicad-developers team mailing list archive
Mailing list archive
Re: [GAL] Added fixed-width line rendering
Maciej Suminski <maciej.suminski@xxxxxxx>
Fri, 23 Jun 2017 00:23:20 +0200
spf=pass (sender IP is 184.108.40.206) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0
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
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
> 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