Clear cache on prewarm
This commit is contained in:
1 parent
2a30882c91
commit
48aaf821a5
2 files changed
+3
-1
No files matched your search
@@ -24,6 +24,8 @@ void FontCacheManager::clearCache() {
|
||||
}
|
||||
|
||||
void FontCacheManager::prewarmCache(int fontId, const char* utf8Text, uint8_t styleMask) {
|
||||
clearCache();
|
||||
|
||||
// SD card font prewarm path: prewarm all requested styles in one call
|
||||
auto sdIt = sdCardFonts_.find(fontId);
|
||||
if (sdIt != sdCardFonts_.end()) {
|
||||
|
||||
Reference in new issue
Block a user