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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user