- Remove a pointless check (CID 731583)
- Add a comment
- Simplify code

svn path=/trunk/; revision=57497
This commit is contained in:
Timo Kreuzer 2012-10-06 14:35:52 +00:00
parent 9d29067d15
commit de6d388331
2 changed files with 9 additions and 12 deletions

View file

@ -65,7 +65,7 @@ FillFaceInfo(
pface->wA = GETVAL(pFontInfo->dfAspace);
pface->wB = GETVAL(pFontInfo->dfBspace);
pface->wC = GETVAL(pFontInfo->dfCspace);
pface->pCharTable = pface->pFontInfo->dfCharTable;
pface->pCharTable = pFontInfo->dfCharTable;
pface->cjEntrySize = sizeof(GLYPHENTRY30);
}
else
@ -74,7 +74,7 @@ FillFaceInfo(
pface->wA = 0;
pface->wB = 0;
pface->wC = 0;
pface->pCharTable = &pface->pFontInfo->dfReserved + 1;
pface->pCharTable = &pFontInfo->dfReserved + 1;
pface->cjEntrySize = sizeof(GLYPHENTRY20);
}

View file

@ -80,18 +80,15 @@ BmfdQueryGlyphAndBitmap(
ULONG cjSize)
{
PBMFD_FACE pface = pfont->pface;
PGLYPHENTRY pge = (PGLYPHENTRY)(pface->pCharTable + hg);
PGLYPHENTRY pge;
ULONG xSrc, ySrc, cxSrc, cySrc;
ULONG xDst, yDst, cxDst, cyDst;
ULONG xScale, yScale;
ULONG ulGlyphOffset, cjDstRow, color;
PVOID pvSrc0, pvDst0;
if (!pge)
{
DbgPrint("no glyph handle given!\n");
return FD_ERROR;
}
/* The glyph handle is the byte offset to the glyph in the table */
pge = (PGLYPHENTRY)(pface->pCharTable + hg);
/* Get the bitmap offset depending on file version */
if (pface->ulVersion >= 0x300)