File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ v0.9.2 (WIP):
1414
1515 CHANGE: Canvas: Don't use deprecated SetItemAllowOverlap (#250)
1616
17+ CHANGE: Editor: Define IMGUI_DEFINE_MATH_OPERATORS before <imgui.h> (#209), thanks @ocornut
18+
19+ CHANGE: Editor: Unary operator- for ImVec2 is defined by ImGui since r18955 (#248)
20+
1721 BUGFIX: Editor: Correctly initialize 'width' for view resize code (thx @gnif)
1822
1923 BUGFIX: Examples: Handle node deletion before links (#182)
Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ struct ImLine
3333inline bool operator ==(const ImVec2& lhs, const ImVec2& rhs);
3434inline bool operator !=(const ImVec2& lhs, const ImVec2& rhs);
3535inline ImVec2 operator *(const float lhs, const ImVec2& rhs);
36+ # if IMGUI_VERSION_NUM < 18955
3637inline ImVec2 operator -(const ImVec2& lhs);
38+ # endif
3739
3840
3941// ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ inline ImVec2 operator*(const float lhs, const ImVec2& rhs)
3434 return ImVec2 (lhs * rhs.x , lhs * rhs.y );
3535}
3636
37- inline static ImVec2 operator -(const ImVec2& lhs)
37+ # if IMGUI_VERSION_NUM < 18955
38+ inline ImVec2 operator -(const ImVec2& lhs)
3839{
3940 return ImVec2 (-lhs.x , -lhs.y );
4041}
42+ # endif
4143
4244
4345// ------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments