From ade4132b25fca4542f536869024b6f2f3d00104d Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 24 Jun 2008 16:10:08 +0900 Subject: [PATCH] gdi32: Make GetOutlineTextMetrics set tmDigitizedAspectX/Y to real values as GetTextMetrics does. --- dlls/gdi32/font.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 1bfd97accb4..b43873afeac 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -1410,6 +1410,9 @@ UINT WINAPI GetOutlineTextMetricsW( WineEngGetOutlineTextMetrics(dc->gdiFont, ret, output); } + output->otmTextMetrics.tmDigitizedAspectX = GetDeviceCaps(hdc, LOGPIXELSX); + output->otmTextMetrics.tmDigitizedAspectY = GetDeviceCaps(hdc, LOGPIXELSY); + #define WDPTOLP(x) ((x<0)? \ (-abs(INTERNAL_XDSTOWS(dc, (x)))): \ (abs(INTERNAL_XDSTOWS(dc, (x)))))