mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 04:31:06 +01:00 
			
		
		
		
	| @@ -1,4 +1,4 @@ | |||||||
| // ImGui library v1.31 | // ImGui library v1.32 wip | ||||||
| // See ImGui::ShowTestWindow() for sample code. | // See ImGui::ShowTestWindow() for sample code. | ||||||
| // Read 'Programmer guide' below for notes on how to setup ImGui in your codebase. | // Read 'Programmer guide' below for notes on how to setup ImGui in your codebase. | ||||||
| // Get latest version at https://github.com/ocornut/imgui | // Get latest version at https://github.com/ocornut/imgui | ||||||
| @@ -2962,7 +2962,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, ImVec2 size, float fill_alph | |||||||
|             } |             } | ||||||
|  |  | ||||||
|             const ImVec2 text_size = CalcTextSize(name, NULL, true); |             const ImVec2 text_size = CalcTextSize(name, NULL, true); | ||||||
|             const ImVec2 text_max = window->Pos + ImVec2(window->Size.x - (p_opened ? (title_bar_aabb.GetHeight()-3) : style.FramePadding.x), style.FramePadding.y + text_size.y); |             const ImVec2 text_max = window->Pos + ImVec2(window->Size.x - (p_opened ? (title_bar_aabb.GetHeight()-3) : style.FramePadding.x), style.FramePadding.y*2 + text_size.y); | ||||||
|             RenderTextClipped(text_min, name, NULL, &text_size, text_max); |             RenderTextClipped(text_min, name, NULL, &text_size, text_max); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| // ImGui library v1.31 | // ImGui library v1.32 wip | ||||||
| // See .cpp file for documentation. | // See .cpp file for documentation. | ||||||
| // See ImGui::ShowTestWindow() for sample code. | // See ImGui::ShowTestWindow() for sample code. | ||||||
| // Read 'Programmer guide' in .cpp for notes on how to setup ImGui in your codebase. | // Read 'Programmer guide' in .cpp for notes on how to setup ImGui in your codebase. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user