From 7817ba24abdcbd86c36d2a03e3c7765470a52e56 Mon Sep 17 00:00:00 2001 From: nothingTVatYT Date: Thu, 21 Oct 2021 20:49:07 +0200 Subject: [PATCH] use a fixed font if the requested cannot be found for message boxes --- Source/Engine/Platform/Linux/LinuxPlatform.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Platform/Linux/LinuxPlatform.cpp b/Source/Engine/Platform/Linux/LinuxPlatform.cpp index 7e5b55228..cf7d6399c 100644 --- a/Source/Engine/Platform/Linux/LinuxPlatform.cpp +++ b/Source/Engine/Platform/Linux/LinuxPlatform.cpp @@ -212,7 +212,9 @@ static int X11_MessageBoxInit(MessageBoxData* data) if (data->font_set == nullptr) { 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;