[client] main: alerts and overlay toggles should invalidate the window

This commit is contained in:
Geoffrey McRae
2021-08-01 18:04:43 +10:00
parent 17687fdea3
commit 2d74c93232
4 changed files with 19 additions and 10 deletions

View File

@@ -47,14 +47,6 @@ static int alert_render(void * udata, bool interactive, struct Rect * windowRect
if (!g_state.alertShow)
return 0;
if (g_state.alertTimeout < microtime())
{
g_state.alertShow = false;
free(g_state.alertMessage);
g_state.alertMessage = NULL;
return 0;
}
ImVec2 * screen = overlayGetScreenSize();
igSetNextWindowBgAlpha(0.8f);
igSetNextWindowPos((ImVec2) { screen->x / 2.0f, screen->y / 2.0f }, 0,