sys: Update ImGui
This commit is contained in:
parent
7285537d73
commit
1c4a00dd00
1
external/ImGui/include/imgui_impl_glfw.h
vendored
1
external/ImGui/include/imgui_impl_glfw.h
vendored
@ -36,6 +36,7 @@ IMGUI_IMPL_API void ImGui_ImplGlfw_NewFrame();
|
||||
// GLFW callbacks
|
||||
// - When calling Init with 'install_callbacks=true': GLFW callbacks will be installed for you. They will call user's previously installed callbacks, if any.
|
||||
// - When calling Init with 'install_callbacks=false': GLFW callbacks won't be installed. You will need to call those function yourself from your own GLFW callbacks.
|
||||
IMGUI_IMPL_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window, int focused);
|
||||
IMGUI_IMPL_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window, int entered);
|
||||
IMGUI_IMPL_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods);
|
||||
IMGUI_IMPL_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset);
|
||||
|
13
external/ImGui/source/imgui.cpp
vendored
13
external/ImGui/source/imgui.cpp
vendored
@ -13111,7 +13111,13 @@ void ImGui::DockContextProcessUndockNode(ImGuiContext* ctx, ImGuiDockNode* node)
|
||||
DockNodeMoveWindows(new_node, node);
|
||||
DockSettingsRenameNodeReferences(node->ID, new_node->ID);
|
||||
for (int n = 0; n < new_node->Windows.Size; n++)
|
||||
UpdateWindowParentAndRootLinks(new_node->Windows[n], new_node->Windows[n]->Flags, NULL);
|
||||
{
|
||||
ImGuiWindow* window = new_node->Windows[n];
|
||||
window->Flags &= ~ImGuiWindowFlags_ChildWindow;
|
||||
if (window->ParentWindow)
|
||||
window->ParentWindow->DC.ChildWindows.find_erase(window);
|
||||
UpdateWindowParentAndRootLinks(window, window->Flags, NULL);
|
||||
}
|
||||
node = new_node;
|
||||
}
|
||||
else
|
||||
@ -13293,7 +13299,10 @@ static void ImGui::DockNodeRemoveWindow(ImGuiDockNode* node, ImGuiWindow* window
|
||||
window->DockNode = NULL;
|
||||
window->DockIsActive = window->DockTabWantClose = false;
|
||||
window->DockId = save_dock_id;
|
||||
UpdateWindowParentAndRootLinks(window, window->Flags & ~ImGuiWindowFlags_ChildWindow, NULL); // Update immediately
|
||||
window->Flags &= ~ImGuiWindowFlags_ChildWindow;
|
||||
if (window->ParentWindow)
|
||||
window->ParentWindow->DC.ChildWindows.find_erase(window);
|
||||
UpdateWindowParentAndRootLinks(window, window->Flags, NULL); // Update immediately
|
||||
|
||||
// Remove window
|
||||
bool erased = false;
|
||||
|
1
external/ImGui/source/imgui_impl_glfw.cpp
vendored
1
external/ImGui/source/imgui_impl_glfw.cpp
vendored
@ -913,6 +913,7 @@ static int ImGui_ImplGlfw_CreateVkSurface(ImGuiViewport* viewport, ImU64 vk_inst
|
||||
{
|
||||
ImGui_ImplGlfw_Data* bd = ImGui_ImplGlfw_GetBackendData();
|
||||
ImGui_ImplGlfw_ViewportData* vd = (ImGui_ImplGlfw_ViewportData*)viewport->PlatformUserData;
|
||||
IM_UNUSED(bd);
|
||||
IM_ASSERT(bd->ClientApi == GlfwClientApi_Vulkan);
|
||||
VkResult err = glfwCreateWindowSurface((VkInstance)vk_instance, vd->Window, (const VkAllocationCallbacks*)vk_allocator, (VkSurfaceKHR*)out_vk_surface);
|
||||
return (int)err;
|
||||
|
Loading…
Reference in New Issue
Block a user