From 35032413efc21458f61324fe5e1262621d7dd118 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 18 Sep 2017 00:18:36 +0200 Subject: [PATCH] Define ImVec2 operator+. --- server/TracyImGui.hpp | 9 +++++++++ server/TracyView.cpp | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 server/TracyImGui.hpp diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp new file mode 100755 index 00000000..053c3e64 --- /dev/null +++ b/server/TracyImGui.hpp @@ -0,0 +1,9 @@ +#ifndef __TRACYIMGUI_HPP__ +#define __TRACYIMGUI_HPP__ + +#include "../imgui/imgui.h" +#include "../imgui/imgui_internal.h" + +ImVec2 operator+( const ImVec2& l, const ImVec2& r ) { return ImVec2( l.x + r.x, l.y + r.y ); } + +#endif diff --git a/server/TracyView.cpp b/server/TracyView.cpp index af8175e0..3446160a 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11,7 +11,7 @@ #include "../common/TracyProtocol.hpp" #include "../common/TracySystem.hpp" #include "../common/TracyQueue.hpp" -#include "../imgui/imgui.h" +#include "TracyImGui.hpp" #include "TracyView.hpp" namespace tracy