mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Internals: Storing settings using ImVec2ih to match what we are doing with dock node. + removed ImMax from reading Size value (done in Begin) + removed seemingly unnecessary FLT_MAX compare in SettingsHandlerWindow_WriteAll.
About: Added backquote to text copied into clipboard so it doesn't mess up with github formatting when pasted.
This commit is contained in:
		| @@ -2961,7 +2961,10 @@ void ImGui::ShowAboutWindow(bool* p_open) | ||||
|         bool copy_to_clipboard = ImGui::Button("Copy to clipboard"); | ||||
|         ImGui::BeginChildFrame(ImGui::GetID("cfginfos"), ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 18), ImGuiWindowFlags_NoMove); | ||||
|         if (copy_to_clipboard) | ||||
|         { | ||||
|             ImGui::LogToClipboard(); | ||||
|             ImGui::LogText("```\n"); // Back quotes will make the text appears without formatting when pasting to GitHub | ||||
|         } | ||||
|  | ||||
|         ImGui::Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); | ||||
|         ImGui::Separator(); | ||||
| @@ -3052,7 +3055,10 @@ void ImGui::ShowAboutWindow(bool* p_open) | ||||
|         ImGui::Text("style.ItemInnerSpacing: %.2f,%.2f", style.ItemInnerSpacing.x, style.ItemInnerSpacing.y); | ||||
|  | ||||
|         if (copy_to_clipboard) | ||||
|         { | ||||
|             ImGui::LogText("\n```\n"); | ||||
|             ImGui::LogFinish(); | ||||
|         } | ||||
|         ImGui::EndChildFrame(); | ||||
|     } | ||||
|     ImGui::End(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user