Skip to content

Commit

Permalink
Editor: Don't duplicated ImVec2/ImVec3 == != operators defined since …
Browse files Browse the repository at this point in the history
…ImGui r19002 (#268)
  • Loading branch information
thedmd committed Dec 27, 2023
1 parent 9399cb4 commit 727229e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ v0.10.0 (WIP):

BUGFIX: Canvas: Remember index of first command buffer to not miss updating any used (#260)

BUGFIX: Editor: Don't duplicated ImVec2/ImVec3 == != operators defined since ImGui r19002 (#268)

v0.9.2 (2023-09-01):

NEW: Editor: Add offset of hover/select to style (thanks @MultiPain)
Expand Down
2 changes: 2 additions & 0 deletions imgui_extra_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ struct ImLine


//------------------------------------------------------------------------------
# if IMGUI_VERSION_NUM < 19002
inline bool operator==(const ImVec2& lhs, const ImVec2& rhs);
inline bool operator!=(const ImVec2& lhs, const ImVec2& rhs);
# endif
inline ImVec2 operator*(const float lhs, const ImVec2& rhs);
# if IMGUI_VERSION_NUM < 18955
inline ImVec2 operator-(const ImVec2& lhs);
Expand Down
2 changes: 2 additions & 0 deletions imgui_extra_math.inl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@


//------------------------------------------------------------------------------
# if IMGUI_VERSION_NUM < 19002
inline bool operator==(const ImVec2& lhs, const ImVec2& rhs)
{
return lhs.x == rhs.x && lhs.y == rhs.y;
Expand All @@ -28,6 +29,7 @@ inline bool operator!=(const ImVec2& lhs, const ImVec2& rhs)
{
return lhs.x != rhs.x || lhs.y != rhs.y;
}
# endif

inline ImVec2 operator*(const float lhs, const ImVec2& rhs)
{
Expand Down

0 comments on commit 727229e

Please sign in to comment.