Small fixes

This commit is contained in:
Chandler Cox
2023-04-14 15:07:06 -05:00
parent e8aa2f922b
commit da85771472

View File

@@ -124,7 +124,7 @@ void Font::ProcessText(const StringView& text, Array<FontLineCache>& outputLines
int32 lastUpperIndex = INVALID_INDEX;
float lastUpperX = 0;
int32 lastUnderscoreIndex = INVALID_INDEX;
float lastUnderscoreX = 0;
@@ -155,6 +155,7 @@ void Font::ProcessText(const StringView& text, Array<FontLineCache>& outputLines
lastUpperX = cursorX;
}
// Check if character is an underscore
const bool isUnderscore = currentChar == '_';
if (isUnderscore)
{