gdiplus: Only clip strings if rectangle width and height are positive.

Dmitry Timoshkov dmitry at baikal.ru
Tue Aug 13 22:12:50 CDT 2013


Vincent Povirk <madewokherd at gmail.com> wrote:

>      if (!(format_flags & StringFormatFlagsNoClip) &&
> -        scaled_rect.Width != 1 << 23 && scaled_rect.Height != 1 << 23)
> +        scaled_rect.Width != 1 << 23 && scaled_rect.Height != 1 << 23 &&
> +        rect->Width > 0.0 && rect->Height > 0.0)
>      {
>          /* FIXME: If only the width or only the height is 0, we should probably still clip */
>          rgn = CreatePolygonRgn(corners, 4, ALTERNATE);

Probably FIXME should be removed then.

-- 
Dmitry.



More information about the wine-devel mailing list