[2/5] gdi32: Set tmDigitizedAspectX/Y to 96 instead of 300 for consistency.

Dmitry Timoshkov dmitry at baikal.ru
Tue May 8 18:24:30 CDT 2012


Dmitry Timoshkov <dmitry at baikal.ru> wrote:

> --- a/dlls/gdi32/freetype.c
> +++ b/dlls/gdi32/freetype.c
> @@ -6677,8 +6677,8 @@ static BOOL get_outline_text_metrics(GdiFont *font)
>              TM.tmWeight = pOS2->usWeightClass;
>      }
>      TM.tmOverhang = 0;
> -    TM.tmDigitizedAspectX = 300;
> -    TM.tmDigitizedAspectY = 300;
> +    TM.tmDigitizedAspectX = 96; /* FIXME */
> +    TM.tmDigitizedAspectY = 96; /* FIXME */

A couple of comments to the patch:
1. the values should be set to the resolution of the target device, and 96
looks more natural since most of the time the device is a display.
2. the change is for consystency with get_bitmap_text_metrics() which sets
these values to 96.
3. even if this pacth is rejected, other patches in the sequence should not
be affected by it.

-- 
Dmitry.



More information about the wine-devel mailing list