mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	SetScrollPosHere() fixed imprecisions
This commit is contained in:
		@@ -4646,7 +4646,7 @@ float ImGui::GetScrollMaxY()
 | 
			
		||||
void ImGui::SetScrollPosHere()
 | 
			
		||||
{
 | 
			
		||||
    ImGuiWindow* window = GetCurrentWindow();
 | 
			
		||||
    window->ScrollTargetCenterY = (window->DC.CursorPos.y + window->ScrollY) - window->DC.PrevLineHeight * 0.5f;
 | 
			
		||||
    window->ScrollTargetCenterY = (float)(int)(window->DC.CursorPos.y + window->ScrollY - window->DC.PrevLineHeight * 0.5f);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ImGui::SetKeyboardFocusHere(int offset)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user