Skip to content

Commit f33219d

Browse files
committed
fixes for implot updates
1 parent 76debb5 commit f33219d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

3rdparty/imnodes/imnodes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// [SECTION] ui state logic
66
// [SECTION] render helpers
77
// [SECTION] API implementation
8-
8+
#define IMGUI_DEFINE_MATH_OPERATORS
99
#include "imnodes.h"
1010
#include "imnodes_internal.h"
1111

12-
#define IMGUI_DEFINE_MATH_OPERATORS
12+
1313
#include <imgui_internal.h>
1414

1515
// Check minimum ImGui version

demos/voice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct ImVoice : App {
4949
void Update() {
5050
static bool pause = false;
5151

52-
if (ImGui::IsKeyPressed(GLFW_KEY_SPACE))
52+
if (ImGui::IsKeyPressed((ImGuiKey)GLFW_KEY_SPACE))
5353
pause = !pause;
5454
if (!pause && g_buffer1.size() >= 441) {
5555
std::lock_guard<std::mutex> lock(g_mtx);

tests/benchmark.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ struct ImPlotBench : App
669669

670670
GImGui->Style.AntiAliasedLines = GImGui->Style.AntiAliasedLinesUseTex = working_aa;
671671

672-
if (ImPlot::BeginPlot("##Bench", ImVec2(-1, -1), ImPlotFlags_NoChild | ImPlotFlags_CanvasOnly))
672+
if (ImPlot::BeginPlot("##Bench", ImVec2(-1, -1), ImPlotFlags_CanvasOnly))
673673
{
674674
ImPlot::SetupAxesLimits(0, kMaxElemsItem, kMaxElemsItem-kDataNoise, kMaxElems+kDataNoise, ImGuiCond_Always);
675675
ImPlot::SetupAxes(NULL, NULL, ImPlotAxisFlags_NoDecorations, ImPlotAxisFlags_NoDecorations);
@@ -741,7 +741,7 @@ struct ImPlotBench : App
741741
return snprintf(buff, size, "%.0fk", value / 1000);
742742
};
743743

744-
if (ImPlot::BeginPlot("##Stats", ImVec2(-1, -1), ImPlotFlags_NoChild))
744+
if (ImPlot::BeginPlot("##Stats", ImVec2(-1, -1)))
745745
{
746746
ImPlot::SetupAxis(ImAxis_X1, "Elements");
747747
ImPlot::SetupAxis(ImAxis_Y1, "Time [ms]");

0 commit comments

Comments
 (0)