Revert "[client] overlay/status: don't return damage rect if nothing was drawn"

This reverts commit 7e9e38faa5d3144dac9e9c3abd357435b25c16ff as it
causes screen corruption when moving imgui overlay dialogs around.
This commit is contained in:
Geoffrey McRae 2025-03-05 15:17:44 +11:00
parent d9f2df361d
commit b43f572af0

View File

@ -89,7 +89,6 @@ static int status_render(void * udata, bool interactive, struct Rect * windowRec
}; };
int xPos = screen->x - marginX; int xPos = screen->x - marginX;
bool show = false;
for(int i = 0; i < LG_USER_STATUS_MAX; ++i) for(int i = 0; i < LG_USER_STATUS_MAX; ++i)
{ {
OverlayImage * img = &l_image[i]; OverlayImage * img = &l_image[i];
@ -100,8 +99,6 @@ static int status_render(void * udata, bool interactive, struct Rect * windowRec
if (i == LG_USER_STATUS_RECORDING && !l_recordToggle) if (i == LG_USER_STATUS_RECORDING && !l_recordToggle)
goto next; goto next;
show = true;
ImDrawList_AddImage( ImDrawList_AddImage(
igGetBackgroundDrawList_Nil(), igGetBackgroundDrawList_Nil(),
(ImTextureID)img->tex, (ImTextureID)img->tex,
@ -121,9 +118,6 @@ next:
xPos -= ICON_SIZE + gapX; xPos -= ICON_SIZE + gapX;
} }
if (!show)
return 0;
*windowRects = rect; *windowRects = rect;
return 1; return 1;
} }