mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-25 08:06:30 +00:00
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:
parent
d9f2df361d
commit
b43f572af0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user