mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Update PGF.cpp
This commit is contained in:
parent
c067c48585
commit
8547eecd31
1 changed files with 2 additions and 2 deletions
|
@ -221,9 +221,9 @@ void PGF::ReadPtr(const u8 *ptr, size_t dataSize) {
|
|||
// And shadow glyphs.
|
||||
for (size_t i = 0; i < shadowGlyphs.size(); i++) {
|
||||
size_t shadowId = glyphs[i].shadowID;
|
||||
if ((shadowId >= 0) && (shadowId < shadowMap.size()) && (shadowId < shadowGlyphs.size())) {
|
||||
if ((shadowId < shadowMap.size()) && (shadowId < shadowGlyphs.size())) {
|
||||
size_t charId = shadowMap[shadowId];
|
||||
if ((charId >= 0) && (charId < glyphs.size())) {
|
||||
if (charId < glyphs.size()) {
|
||||
// TODO: check for pre existing shadow glyph
|
||||
GetGlyph(fontData, charPointers[charId] * 4 * 8 /* ??? */, FONT_PGF_SHADOWGLYPH, shadowGlyphs[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue