From 186081d15ae8abab920ce7b0b420e7a4d2cc94c4 Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Thu, 23 Apr 2026 17:37:57 +0200 Subject: [PATCH] ImVec2 operator* is after imgui 19268 --- imgui_extra_math.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui_extra_math.inl b/imgui_extra_math.inl index 8e2347f7..a460beb6 100644 --- a/imgui_extra_math.inl +++ b/imgui_extra_math.inl @@ -30,12 +30,12 @@ inline bool operator!=(const ImVec2& lhs, const ImVec2& rhs) return lhs.x != rhs.x || lhs.y != rhs.y; } # endif - +# if IMGUI_VERSION_NUM < 19268 inline ImVec2 operator*(const float lhs, const ImVec2& rhs) { return ImVec2(lhs * rhs.x, lhs * rhs.y); } - +#endif # if IMGUI_VERSION_NUM < 18955 inline ImVec2 operator-(const ImVec2& lhs) {