kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #29765
Re: [GAL] Added fixed-width line rendering
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Suminski <maciej.suminski@xxxxxxx>
-
Date:
Fri, 23 Jun 2017 00:23:20 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.46) 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;
-
In-reply-to:
<CAMfgvU-G6LfGuGXiUH=30t4JZWjjTYjOi0ngdEixt2h8UKJNZw@mail.gmail.com>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0
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.
Regards,
Orson
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
References