mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-10 17:38:10 +00:00
[client] overlay: add app_invalidateOverlay
method
This commit is contained in:
@@ -622,9 +622,6 @@ void app_alert(LG_MsgAlert type, const char * fmt, ...)
|
||||
va_start(args, fmt);
|
||||
overlayAlert_show(type, fmt, args);
|
||||
va_end(args);
|
||||
|
||||
g_state.renderImGuiTwice = true;
|
||||
app_invalidateWindow(false);
|
||||
}
|
||||
|
||||
KeybindHandle app_registerKeybind(int sc, KeybindFn callback, void * opaque, const char * description)
|
||||
@@ -915,3 +912,10 @@ void app_overlayConfigRegisterTab(const char * title,
|
||||
{
|
||||
overlayConfig_registerTab(title, callback, udata);
|
||||
}
|
||||
|
||||
void app_invalidateOverlay(bool renderTwice)
|
||||
{
|
||||
if (renderTwice)
|
||||
g_state.renderImGuiTwice = true;
|
||||
app_invalidateWindow(false);
|
||||
}
|
||||
|
@@ -130,5 +130,6 @@ void overlayAlert_show(LG_MsgAlert type, const char * fmt, va_list args)
|
||||
l_alert.timeout = ALERT_TIMEOUT;
|
||||
l_alert.type = type;
|
||||
l_alert.show = true;
|
||||
l_alert.redraw = true;
|
||||
|
||||
app_invalidateOverlay(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user