[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: gdiplus: Use outside color from image attributes for an out of bounds pixel.
From:       Vincent Povirk <madewokherd () gmail ! com>
Date:       2012-08-28 1:20:40
Message-ID: CAG_NDKouESBqQr2RVe=j6oY39TBAEOo0MJ0AsTFVY-aYdfAmDg () mail ! gmail ! com
[Download RAW message or body]

> if (src_pointf.X >= srcx && src_pointf.X < srcx + srcwidth && src_pointf.Y >= srcy \
>                 && src_pointf.Y < srcy+srcheight)
> *dst_color = resample_bitmap_pixel(&src_area, src_data, bitmap->width, \
> bitmap->height, &src_pointf, imageAttributes, interpolation); else
> -                        *dst_color = 0;
> +                        *dst_color = imageAttributes->outside_color;

It's like this for a reason. This isn't out of the bounds of the
source image, which is when imageAttributes would apply. This is out
of the bounds of the parallelogram we're drawing, and we should be
leaving that pixel alone.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic