mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 12:42:02 +00:00 
			
		
		
		
	Revert "[client] overlay/status: don't return damage rect if nothing was drawn"
This reverts commit 7e9e38faa5 as it
causes screen corruption when moving imgui overlay dialogs around.
			
			
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Geoffrey McRae
					Geoffrey McRae