use a fixed font if the requested cannot be found for message boxes

This commit is contained in:
nothingTVatYT
2021-10-21 20:49:07 +02:00
parent 7018ada593
commit 7817ba24ab

View File

@@ -212,7 +212,9 @@ static int X11_MessageBoxInit(MessageBoxData* data)
if (data->font_set == nullptr) if (data->font_set == nullptr)
{ {
LINUX_DIALOG_PRINT("Couldn't load font %s", MessageBoxFont); LINUX_DIALOG_PRINT("Couldn't load font %s", MessageBoxFont);
return 1; data->font_set = X11::XCreateFontSet(data->display, "fixed", &missing, &num_missing, NULL);
if (missing != nullptr) X11::XFreeStringList(missing);
//return 1;
} }
return 0; return 0;