mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	ImVector: Made a struct. Using T/T* in the code instead of value_type/iterator. Renamed index_from_pointer() to index_from_ptr() (was not documented, added in 1.63, users not supposed to use ImVector, hopefully not a big deal).
This commit is contained in:
		| @@ -4384,7 +4384,7 @@ static ImGuiWindow* CreateNewWindow(const char* name, ImVec2 size, ImGuiWindowFl | ||||
|         if (ImGuiWindowSettings* settings = ImGui::FindWindowSettings(window->ID)) | ||||
|         { | ||||
|             // Retrieve settings from .ini file | ||||
|             window->SettingsIdx = g.SettingsWindows.index_from_pointer(settings); | ||||
|             window->SettingsIdx = g.SettingsWindows.index_from_ptr(settings); | ||||
|             SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); | ||||
|             window->Pos = ImFloor(settings->Pos); | ||||
|             window->Collapsed = settings->Collapsed; | ||||
| @@ -8940,7 +8940,7 @@ static void SettingsHandlerWindow_WriteAll(ImGuiContext* imgui_ctx, ImGuiSetting | ||||
|         if (!settings) | ||||
|         { | ||||
|             settings = ImGui::CreateNewWindowSettings(window->Name); | ||||
|             window->SettingsIdx = g.SettingsWindows.index_from_pointer(settings); | ||||
|             window->SettingsIdx = g.SettingsWindows.index_from_ptr(settings); | ||||
|         } | ||||
|         IM_ASSERT(settings->ID == window->ID); | ||||
|         settings->Pos = window->Pos; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user