mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
27 lines
1.4 KiB
Diff
27 lines
1.4 KiB
Diff
diff --git a/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp b/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp
|
|
index 47de4870..7e6f13a8 100644
|
|
--- a/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp
|
|
+++ b/include/igl/opengl/glfw/imgui/ImGuiMenu.cpp
|
|
@@ -167,8 +167,8 @@ IGL_INLINE void ImGuiMenu::draw_menu()
|
|
IGL_INLINE void ImGuiMenu::draw_viewer_window()
|
|
{
|
|
float menu_width = 180.f * menu_scaling();
|
|
- ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f), ImGuiSetCond_FirstUseEver);
|
|
- ImGui::SetNextWindowSize(ImVec2(0.0f, 0.0f), ImGuiSetCond_FirstUseEver);
|
|
+ ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f), ImGuiCond_FirstUseEver);
|
|
+ ImGui::SetNextWindowSize(ImVec2(0.0f, 0.0f), ImGuiCond_FirstUseEver);
|
|
ImGui::SetNextWindowSizeConstraints(ImVec2(menu_width, -1.0f), ImVec2(menu_width, -1.0f));
|
|
bool _viewer_menu_visible = true;
|
|
ImGui::Begin(
|
|
@@ -310,8 +310,8 @@ IGL_INLINE void ImGuiMenu::draw_viewer_menu()
|
|
IGL_INLINE void ImGuiMenu::draw_labels_window()
|
|
{
|
|
// Text labels
|
|
- ImGui::SetNextWindowPos(ImVec2(0,0), ImGuiSetCond_Always);
|
|
- ImGui::SetNextWindowSize(ImGui::GetIO().DisplaySize, ImGuiSetCond_Always);
|
|
+ ImGui::SetNextWindowPos(ImVec2(0,0), ImGuiCond_Always);
|
|
+ ImGui::SetNextWindowSize(ImGui::GetIO().DisplaySize, ImGuiCond_Always);
|
|
bool visible = true;
|
|
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0,0,0,0));
|
|
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0);
|