Update PGF.cpp

This commit is contained in:
CPkmn committed 2013-08-10 05:21:23 -07:00
1 parent 8547eecd31
commit 4fccf6771f
1 file changed
+2 -2
+2 -2
View File
@@ -219,13 +219,13 @@ void PGF::ReadPtr(const u8 *ptr, size_t dataSize) {
}
// And shadow glyphs.
for (size_t i = 0; i < shadowGlyphs.size(); i++) {
for (size_t i = 0; i < glyphs.size(); i++) {
size_t shadowId = glyphs[i].shadowID;
if ((shadowId < shadowMap.size()) && (shadowId < shadowGlyphs.size())) {
size_t charId = shadowMap[shadowId];
if (charId < glyphs.size()) {
// TODO: check for pre existing shadow glyph
GetGlyph(fontData, charPointers[charId] * 4 * 8 /* ??? */, FONT_PGF_SHADOWGLYPH, shadowGlyphs[i]);
GetGlyph(fontData, charPointers[charId] * 4 * 8 /* ??? */, FONT_PGF_SHADOWGLYPH, shadowGlyphs[shadowId]);
}
}
}