gdi32: pOS2->xAvgCharWidth can be negative however tmAvgCharWidth needs a positive value

Dmitry Timoshkov dmitry at baikal.ru
Mon Feb 20 22:49:14 CST 2012


Aric Stewart <aric at codeweavers.com> wrote:

> -    TM.tmAveCharWidth = (pFT_MulFix(pOS2->xAvgCharWidth, x_scale) + 32) >> 6;
> +    TM.tmAveCharWidth = (pFT_MulFix(abs(pOS2->xAvgCharWidth), x_scale) + 32) >> 6;

Did you test what Windows does in that case?

-- 
Dmitry.



More information about the wine-devel mailing list