[PATCH 2/2] gdiplus: Fix hatch brush patterns.

Jeff Smith whydoubt at gmail.com
Thu Jun 11 21:44:26 CDT 2020


Or visually:
https://www.desmos.com/calculator/f7czote8qs

On Thu, Jun 11, 2020 at 9:34 PM Jeff Smith <whydoubt at gmail.com> wrote:
>
> I'm not sure how to describe it succinctly,
> but if you pass a diagonal line with a width of one unit through
> the middle of a unit square, this is the portion of the square
> that is covered.  Also note that an adjacent square, which just
> has the corner nicked, will have 1/4 of the surface covered.
>
> On Thu, Jun 11, 2020 at 9:08 PM Esme Povirk (they/them)
> <vincent at codeweavers.com> wrote:
> >
> > +    hatch_palette[2] = blend_colors_pre(back_color, fore_color,
> > sqrt(2.0) - 0.5);
> >
> > What is this magic number?



More information about the wine-devel mailing list