diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 1f19690d..b166bf68 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -586,6 +586,11 @@ void Graphics::drawgui() textbox[i].update(); if (textbox[i].active) { + if (textbox[i].tm == 2 && textbox[i].tl <= 0.5) + { + textbox[i].active = false; + } + if (textbox[i].r == 0 && textbox[i].g == 0 && textbox[i].b == 0) { if(flipmode) diff --git a/desktop_version/src/Textbox.cpp b/desktop_version/src/Textbox.cpp index 75f93ae1..1da6b910 100644 --- a/desktop_version/src/Textbox.cpp +++ b/desktop_version/src/Textbox.cpp @@ -105,7 +105,7 @@ void textboxclass::update() if (tl <= 0.5) { tl = 0.5; - active = false; + //this textbox will be removed by drawgui() later } setcol(int(tr * tl), int(tg * tl), int(tb * tl)); }