mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 08:39:15 +08:00
a685c5b764
* [imgui] update to 1.89.4 * [imguizmo] fix build * [implot] fix build
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
diff --git a/GraphEditor.cpp b/GraphEditor.cpp
|
|
index 0f45a40..3a09390 100644
|
|
--- a/GraphEditor.cpp
|
|
+++ b/GraphEditor.cpp
|
|
@@ -24,8 +24,8 @@
|
|
// SOFTWARE.
|
|
//
|
|
|
|
-#include "imgui.h"
|
|
#define IMGUI_DEFINE_MATH_OPERATORS
|
|
+#include "imgui.h"
|
|
#include "imgui_internal.h"
|
|
#include <math.h>
|
|
#include <vector>
|
|
@@ -186,8 +186,8 @@ static void DisplayLinks(Delegate& delegate,
|
|
if (options.mDisplayLinksAsCurves)
|
|
{
|
|
// curves
|
|
- drawList->AddBezierCurve(p1, p1 + ImVec2(50, 0) * factor, p2 + ImVec2(-50, 0) * factor, p2, 0xFF000000, options.mLineThickness * 1.5f * factor);
|
|
- drawList->AddBezierCurve(p1, p1 + ImVec2(50, 0) * factor, p2 + ImVec2(-50, 0) * factor, p2, col, options.mLineThickness * 1.5f * factor);
|
|
+ drawList->AddBezierCubic(p1, p1 + ImVec2(50, 0) * factor, p2 + ImVec2(-50, 0) * factor, p2, 0xFF000000, options.mLineThickness * 1.5f * factor);
|
|
+ drawList->AddBezierCubic(p1, p1 + ImVec2(50, 0) * factor, p2 + ImVec2(-50, 0) * factor, p2, col, options.mLineThickness * 1.5f * factor);
|
|
/*
|
|
ImVec2 p10 = p1 + ImVec2(20.f * factor, 0.f);
|
|
ImVec2 p20 = p2 - ImVec2(20.f * factor, 0.f);
|
|
diff --git a/ImGuizmo.cpp b/ImGuizmo.cpp
|
|
index ed05fd8..74f0a0b 100644
|
|
--- a/ImGuizmo.cpp
|
|
+++ b/ImGuizmo.cpp
|
|
@@ -24,10 +24,10 @@
|
|
// SOFTWARE.
|
|
//
|
|
|
|
-#include "imgui.h"
|
|
#ifndef IMGUI_DEFINE_MATH_OPERATORS
|
|
#define IMGUI_DEFINE_MATH_OPERATORS
|
|
#endif
|
|
+#include "imgui.h"
|
|
#include "imgui_internal.h"
|
|
#include "ImGuizmo.h"
|
|
|