Huw Davies : gdi32: Fix ppem in the case that there isn' t an exact height match in the vdmx table.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 20 13:27:04 CDT 2006


Module: wine
Branch: master
Commit: 7be29570986efe02a3771305a0a63b85fc0a816c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=7be29570986efe02a3771305a0a63b85fc0a816c

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Sep 20 11:53:06 2006 +0100

gdi32: Fix ppem in the case that there isn't an exact height match in the vdmx table.

---

 dlls/gdi/freetype.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c
index 10f3f28..d3fcf06 100644
--- a/dlls/gdi/freetype.c
+++ b/dlls/gdi/freetype.c
@@ -2092,6 +2092,7 @@ static LONG load_VDMX(GdiFont font, LONG
 		    }
 		    font->yMax = GET_BE_WORD(vTable[(i * 3) + 1]);
 		    font->yMin = GET_BE_WORD(vTable[(i * 3) + 2]);
+                    ppem = GET_BE_WORD(vTable[i * 3]);
                     TRACE("ppem %ld found; height=%ld  yMax=%d  yMin=%d\n", ppem, height, font->yMax, font->yMin);
 		    break;
 		}




More information about the wine-cvs mailing list