2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-15 04:06:09 +00:00

Runtime: Use nullptr where applicable

Same behavior, but no magic 0 value.

While we're in the same area, we can do minor cosmetic changes.
This commit is contained in:
Lioncash
2020-03-27 20:11:51 -04:00
parent e0fe365dfd
commit 194cdf145f
6 changed files with 34 additions and 29 deletions

View File

@@ -97,8 +97,10 @@ void CRasterFont::SinglePassDrawString(const CDrawStringOptions& opts, int x, in
if (opts.x0_direction == ETextDirection::Horizontal) {
x += glyph->GetLeftPadding();
if (prevGlyph != 0)
if (prevGlyph != nullptr) {
x += KernLookup(x1c_kerning, prevGlyph->GetKernStart(), *chr);
}
int left = 0;
int top = 0;