Crashlog: Fix font logging
This commit is contained in:
@@ -270,10 +270,10 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const
|
|||||||
|
|
||||||
this->CrashLogFaultSectionCheckpoint(buffer);
|
this->CrashLogFaultSectionCheckpoint(buffer);
|
||||||
|
|
||||||
auto log_font = [&](FontSize fs) -> const char * {
|
auto log_font = [&](FontSize fs) -> std::string {
|
||||||
FontCache *fc = FontCache::Get(fs);
|
FontCache *fc = FontCache::Get(fs);
|
||||||
if (fc != nullptr) {
|
if (fc != nullptr) {
|
||||||
return fc->GetFontName().c_str();
|
return fc->GetFontName();
|
||||||
} else {
|
} else {
|
||||||
return "[NULL]";
|
return "[NULL]";
|
||||||
}
|
}
|
||||||
@@ -285,10 +285,10 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const
|
|||||||
" Medium: %s\n"
|
" Medium: %s\n"
|
||||||
" Large: %s\n"
|
" Large: %s\n"
|
||||||
" Mono: %s\n\n",
|
" Mono: %s\n\n",
|
||||||
log_font(FS_SMALL),
|
log_font(FS_SMALL).c_str(),
|
||||||
log_font(FS_NORMAL),
|
log_font(FS_NORMAL).c_str(),
|
||||||
log_font(FS_LARGE),
|
log_font(FS_LARGE).c_str(),
|
||||||
log_font(FS_MONO)
|
log_font(FS_MONO).c_str()
|
||||||
);
|
);
|
||||||
|
|
||||||
this->CrashLogFaultSectionCheckpoint(buffer);
|
this->CrashLogFaultSectionCheckpoint(buffer);
|
||||||
|
Reference in New Issue
Block a user