Fix inverted use of scaling factors. Patch by Victor Martinez. CORE-8165 #resolve

svn path=/trunk/; revision=63413
This commit is contained in:
Timo Kreuzer 2014-05-22 16:15:48 +00:00
parent 292420e2af
commit 1f5094f9a8

View file

@ -118,8 +118,8 @@ BmfdQueryGlyphAndBitmap(
}
else
{
cxDst = cxSrc * yScale;
cyDst = cySrc * xScale;
cxDst = cxSrc * xScale;
cyDst = cySrc * yScale;
}
cjDstRow = (cxDst + 7) / 8;
@ -154,7 +154,7 @@ BmfdQueryGlyphAndBitmap(
}
/* Fill GLYPHBITS structure */
pgb->ptlOrigin.x = yScale * pface->wA;
pgb->ptlOrigin.x = xScale * pface->wA;
pgb->ptlOrigin.y = - yScale * pface->wAscent;
pgb->sizlBitmap.cx = cxDst;
pgb->sizlBitmap.cy = cyDst;