mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Fix some minor things found looking at Valgrind output
This commit is contained in:
1 parent
d7f3f15b85
commit
bd71af24db
4 files changed
+9
-7
No files matched your search
@@ -477,7 +477,7 @@ static AtlasTextMetrics BreakLines(const char *text, const AtlasFont &atlasfont,
|
||||
utfWord = utfPrev;
|
||||
finished = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
++numChars;
|
||||
@@ -549,7 +549,7 @@ static AtlasTextMetrics BreakLines(const char *text, const AtlasFont &atlasfont,
|
||||
}
|
||||
lineWidth += nextWidth;
|
||||
|
||||
u32 cval = utf.next();
|
||||
u32 cval = utf.end() ? 0 : utf.next();
|
||||
if (spaceWidth > 0)
|
||||
{
|
||||
if (!dryRun)
|
||||
|
||||
Reference in new issue
Block a user