mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Window: Fixed InnerClipRect right-most coordinates using wrong padding setting (introduced in 1.71).
This commit is contained in:
		| @@ -42,6 +42,7 @@ Breaking Changes: | ||||
|   the new names and equivalent. | ||||
|  | ||||
| Other Changes: | ||||
| - Window: Fixed InnerClipRect right-most coordinates using wrong padding setting (introduced in 1.71). | ||||
| - ImDrawList: Fixed CloneOutput() helper crashing. (#1860) [@gviot] | ||||
| - ImDrawListSlitter, ImDrawList::ChannelsSplit(), : Fixed an issue with merging draw commands between channel 0 and 1. (#2624) | ||||
|  | ||||
|   | ||||
| @@ -5618,7 +5618,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) | ||||
|         float top_border_size = (((flags & ImGuiWindowFlags_MenuBar) || !(flags & ImGuiWindowFlags_NoTitleBar)) ? style.FrameBorderSize : window->WindowBorderSize); | ||||
|         window->InnerClipRect.Min.x = ImFloor(0.5f + window->InnerRect.Min.x + ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); | ||||
|         window->InnerClipRect.Min.y = ImFloor(0.5f + window->InnerRect.Min.y + top_border_size); | ||||
|         window->InnerClipRect.Max.x = ImFloor(0.5f + window->InnerRect.Max.x - ImMax(ImFloor(window->WindowPadding.y * 0.5f), window->WindowBorderSize)); | ||||
|         window->InnerClipRect.Max.x = ImFloor(0.5f + window->InnerRect.Max.x - ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); | ||||
|         window->InnerClipRect.Max.y = ImFloor(0.5f + window->InnerRect.Max.y - window->WindowBorderSize); | ||||
|         window->InnerClipRect.ClipWithFull(host_rect); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user