From b43f572af0c7186597360a74ea82a99972d8ca78 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 5 Mar 2025 15:17:44 +1100 Subject: [PATCH] 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. --- client/src/overlay/status.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/src/overlay/status.c b/client/src/overlay/status.c index 486cb21f..e6692b7a 100644 --- a/client/src/overlay/status.c +++ b/client/src/overlay/status.c @@ -89,7 +89,6 @@ static int status_render(void * udata, bool interactive, struct Rect * windowRec }; int xPos = screen->x - marginX; - bool show = false; for(int i = 0; i < LG_USER_STATUS_MAX; ++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) goto next; - show = true; - ImDrawList_AddImage( igGetBackgroundDrawList_Nil(), (ImTextureID)img->tex, @@ -121,9 +118,6 @@ next: xPos -= ICON_SIZE + gapX; } - if (!show) - return 0; - *windowRects = rect; return 1; }