gdi32: For unsigned types, directly use INTERNAL_YDS
This commit is contained in:
parent
316869b273
commit
21b334713c
|
@ -1690,16 +1690,16 @@ UINT WINAPI GetOutlineTextMetricsW(
|
||||||
output->otmTextMetrics.tmOverhang = WDPTOLP(output->otmTextMetrics.tmOverhang);
|
output->otmTextMetrics.tmOverhang = WDPTOLP(output->otmTextMetrics.tmOverhang);
|
||||||
output->otmAscent = HDPTOLP(output->otmAscent);
|
output->otmAscent = HDPTOLP(output->otmAscent);
|
||||||
output->otmDescent = HDPTOLP(output->otmDescent);
|
output->otmDescent = HDPTOLP(output->otmDescent);
|
||||||
output->otmLineGap = HDPTOLP(output->otmLineGap);
|
output->otmLineGap = abs(INTERNAL_YDSTOWS(dc,output->otmLineGap));
|
||||||
output->otmsCapEmHeight = HDPTOLP(output->otmsCapEmHeight);
|
output->otmsCapEmHeight = abs(INTERNAL_YDSTOWS(dc,output->otmsCapEmHeight));
|
||||||
output->otmsXHeight = HDPTOLP(output->otmsXHeight);
|
output->otmsXHeight = abs(INTERNAL_YDSTOWS(dc,output->otmsXHeight));
|
||||||
output->otmrcFontBox.top = HDPTOLP(output->otmrcFontBox.top);
|
output->otmrcFontBox.top = HDPTOLP(output->otmrcFontBox.top);
|
||||||
output->otmrcFontBox.bottom = HDPTOLP(output->otmrcFontBox.bottom);
|
output->otmrcFontBox.bottom = HDPTOLP(output->otmrcFontBox.bottom);
|
||||||
output->otmrcFontBox.left = WDPTOLP(output->otmrcFontBox.left);
|
output->otmrcFontBox.left = WDPTOLP(output->otmrcFontBox.left);
|
||||||
output->otmrcFontBox.right = WDPTOLP(output->otmrcFontBox.right);
|
output->otmrcFontBox.right = WDPTOLP(output->otmrcFontBox.right);
|
||||||
output->otmMacAscent = HDPTOLP(output->otmMacAscent);
|
output->otmMacAscent = HDPTOLP(output->otmMacAscent);
|
||||||
output->otmMacDescent = HDPTOLP(output->otmMacDescent);
|
output->otmMacDescent = HDPTOLP(output->otmMacDescent);
|
||||||
output->otmMacLineGap = HDPTOLP(output->otmMacLineGap);
|
output->otmMacLineGap = abs(INTERNAL_YDSTOWS(dc,output->otmMacLineGap));
|
||||||
output->otmptSubscriptSize.x = WDPTOLP(output->otmptSubscriptSize.x);
|
output->otmptSubscriptSize.x = WDPTOLP(output->otmptSubscriptSize.x);
|
||||||
output->otmptSubscriptSize.y = HDPTOLP(output->otmptSubscriptSize.y);
|
output->otmptSubscriptSize.y = HDPTOLP(output->otmptSubscriptSize.y);
|
||||||
output->otmptSubscriptOffset.x = WDPTOLP(output->otmptSubscriptOffset.x);
|
output->otmptSubscriptOffset.x = WDPTOLP(output->otmptSubscriptOffset.x);
|
||||||
|
@ -1708,7 +1708,7 @@ UINT WINAPI GetOutlineTextMetricsW(
|
||||||
output->otmptSuperscriptSize.y = HDPTOLP(output->otmptSuperscriptSize.y);
|
output->otmptSuperscriptSize.y = HDPTOLP(output->otmptSuperscriptSize.y);
|
||||||
output->otmptSuperscriptOffset.x = WDPTOLP(output->otmptSuperscriptOffset.x);
|
output->otmptSuperscriptOffset.x = WDPTOLP(output->otmptSuperscriptOffset.x);
|
||||||
output->otmptSuperscriptOffset.y = HDPTOLP(output->otmptSuperscriptOffset.y);
|
output->otmptSuperscriptOffset.y = HDPTOLP(output->otmptSuperscriptOffset.y);
|
||||||
output->otmsStrikeoutSize = HDPTOLP(output->otmsStrikeoutSize);
|
output->otmsStrikeoutSize = abs(INTERNAL_YDSTOWS(dc,output->otmsStrikeoutSize));
|
||||||
output->otmsStrikeoutPosition = HDPTOLP(output->otmsStrikeoutPosition);
|
output->otmsStrikeoutPosition = HDPTOLP(output->otmsStrikeoutPosition);
|
||||||
output->otmsUnderscoreSize = HDPTOLP(output->otmsUnderscoreSize);
|
output->otmsUnderscoreSize = HDPTOLP(output->otmsUnderscoreSize);
|
||||||
output->otmsUnderscorePosition = HDPTOLP(output->otmsUnderscorePosition);
|
output->otmsUnderscorePosition = HDPTOLP(output->otmsUnderscorePosition);
|
||||||
|
|
Loading…
Reference in New Issue