mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[client] overlay: restore every splash fade frame
Mark the active fade as requiring a fully restored render target. This also covers guest-driven renders between animation ticks so they cannot blend over stale splash content.
This commit is contained in:
@@ -1030,6 +1030,27 @@ bool app_overlayNeedsRender(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
bool app_overlayNeedsFullRender(void)
|
||||
{
|
||||
bool result = false;
|
||||
struct Overlay * overlay;
|
||||
ll_lock(g_state.overlays);
|
||||
ll_forEachNL(g_state.overlays, item, overlay)
|
||||
{
|
||||
if (!overlay->ops->needs_full_render)
|
||||
continue;
|
||||
|
||||
if (overlay->ops->needs_full_render(overlay->udata))
|
||||
{
|
||||
result = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
ll_unlock(g_state.overlays);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
int app_renderOverlay(struct Rect * rects, int maxRects)
|
||||
{
|
||||
int totalRects = 0;
|
||||
|
||||
Reference in New Issue
Block a user