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 383099c commit 3ed93be
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 @@ -2,6 +2,8 @@ v0.9.4 (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.3 (2023-10-14):

CHANGE: Canvas: Use ImDrawCallback_ImCanvas macro as draw callback sentinel (#256), thanks @nspitko
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 3ed93be

Please sign in to comment.