mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	[client] overlay: prevent possible divide by zero
This commit is contained in:
		@@ -143,6 +143,12 @@ static int graphs_render(void * udata, bool interactive,
 | 
			
		||||
      ++graphCount;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (!graphCount)
 | 
			
		||||
  {
 | 
			
		||||
    ll_unlock(gs.graphs);
 | 
			
		||||
    return 0;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ImVec2 pos = {0.0f, 0.0f};
 | 
			
		||||
  igSetNextWindowBgAlpha(0.4f);
 | 
			
		||||
  igSetNextWindowPos(pos, ImGuiCond_FirstUseEver, pos);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user