mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 04:55:13 +00:00
parent
5619ae36c8
commit
7524b42564
2 changed files with 3 additions and 0 deletions
|
@ -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 a new issue