[PATCH v2] winex11: Fix off-by-one errors in color value scaling

Alex Henrie alexhenrie24 at gmail.com
Wed Nov 13 20:13:58 CST 2019


On Wed, Nov 13, 2019 at 1:33 AM Alexandre Julliard <julliard at winehq.org> wrote:
>
> Alex Henrie <alexhenrie24 at gmail.com> writes:
>
> > Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
> > ---
> > For 0 to map to 0 and 255 to map to 65535, the value must be multiplied
> > by 257, not 256. The incorrect factor would cause the color #FFFFFF to
> > become #FEFEFE.
> >
> > v2: Also correct reverse mapping
>
> For reverse mappings I don't think it's an improvement.

Okay, then just use the first patch I sent and ignore the v2.

-Alex



More information about the wine-devel mailing list