mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Internal: Refactored Separator into SeparatorEx(), exposed ImGuiSeparatorFlags_SpanAllColumns in imgui_internal.h and support without. (#759) + misc comments
This commit is contained in:
		| @@ -5445,7 +5445,8 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) | ||||
|         window->InnerMainRect.Max.x = window->Pos.x + window->Size.x - ImMax(window->ScrollbarSizes.x, window->WindowBorderSize); | ||||
|         window->InnerMainRect.Max.y = window->Pos.y + window->Size.y - ImMax(window->ScrollbarSizes.y, window->WindowBorderSize); | ||||
|  | ||||
|         // Inner clipping rectangle | ||||
|         // Inner clipping rectangle will extend a little bit outside the work region. | ||||
|         // This is to allow e.g. Selectable or CollapsingHeader or some separators to cover that space. | ||||
|         // Force round operator last to ensure that e.g. (int)(max.x-min.x) in user's render code produce correct result. | ||||
|         window->InnerClipRect.Min.x = ImFloor(0.5f + window->InnerMainRect.Min.x + ImMax(0.0f, ImFloor(window->WindowPadding.x * 0.5f - window->WindowBorderSize))); | ||||
|         window->InnerClipRect.Min.y = ImFloor(0.5f + window->InnerMainRect.Min.y); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user