Fix
This commit is contained in:
1 parent
2e1db2ec68
commit
85749b9991
1 file changed
+3
-1
+3
-1
@@ -197,7 +197,9 @@ void ensureSdFontLoadedForPath(const char* path) {
|
|||||||
ensureSdFontLoaded();
|
ensureSdFontLoaded();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const bool isTxtMd = FsHelpers::hasTxtExtension(path) || FsHelpers::hasMarkdownExtension(path);
|
const std::string_view filePath(path);
|
||||||
|
const bool isTxtMd = static_cast<bool (*)(std::string_view)>(FsHelpers::hasTxtExtension)(filePath) ||
|
||||||
|
static_cast<bool (*)(std::string_view)>(FsHelpers::hasMarkdownExtension)(filePath);
|
||||||
if (isTxtMd) {
|
if (isTxtMd) {
|
||||||
sdFontSystem.ensureLoaded(renderer, SETTINGS.txtSdFontFamilyName, SETTINGS.txtFontSize);
|
sdFontSystem.ensureLoaded(renderer, SETTINGS.txtSdFontFamilyName, SETTINGS.txtFontSize);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user