parent
5619ae36c8
commit
7524b42564
|
@ -3839,6 +3839,7 @@ bool FurnaceGUI::loop() {
|
||||||
ImGui::GetIO().Fonts->Clear();
|
ImGui::GetIO().Fonts->Clear();
|
||||||
mainFont=ImGui::GetIO().Fonts->AddFontDefault();
|
mainFont=ImGui::GetIO().Fonts->AddFontDefault();
|
||||||
patFont=mainFont;
|
patFont=mainFont;
|
||||||
|
bigFont=mainFont;
|
||||||
if (rend) rend->destroyFontsTexture();
|
if (rend) rend->destroyFontsTexture();
|
||||||
if (!ImGui::GetIO().Fonts->Build()) {
|
if (!ImGui::GetIO().Fonts->Build()) {
|
||||||
logE("error again while building font atlas!");
|
logE("error again while building font atlas!");
|
||||||
|
@ -6433,6 +6434,7 @@ bool FurnaceGUI::init() {
|
||||||
ImGui::GetIO().Fonts->Clear();
|
ImGui::GetIO().Fonts->Clear();
|
||||||
mainFont=ImGui::GetIO().Fonts->AddFontDefault();
|
mainFont=ImGui::GetIO().Fonts->AddFontDefault();
|
||||||
patFont=mainFont;
|
patFont=mainFont;
|
||||||
|
bigFont=mainFont;
|
||||||
if (rend) rend->destroyFontsTexture();
|
if (rend) rend->destroyFontsTexture();
|
||||||
if (!ImGui::GetIO().Fonts->Build()) {
|
if (!ImGui::GetIO().Fonts->Build()) {
|
||||||
logE("error again while building font atlas!");
|
logE("error again while building font atlas!");
|
||||||
|
|
|
@ -3201,6 +3201,7 @@ void FurnaceGUI::commitSettings() {
|
||||||
ImGui::GetIO().Fonts->Clear();
|
ImGui::GetIO().Fonts->Clear();
|
||||||
mainFont=ImGui::GetIO().Fonts->AddFontDefault();
|
mainFont=ImGui::GetIO().Fonts->AddFontDefault();
|
||||||
patFont=mainFont;
|
patFont=mainFont;
|
||||||
|
bigFont=mainFont;
|
||||||
if (rend) rend->destroyFontsTexture();
|
if (rend) rend->destroyFontsTexture();
|
||||||
if (!ImGui::GetIO().Fonts->Build()) {
|
if (!ImGui::GetIO().Fonts->Build()) {
|
||||||
logE("error again while building font atlas!");
|
logE("error again while building font atlas!");
|
||||||
|
|
Loading…
Reference in New Issue