Skip to content

Commit d79ebde

Browse files
committed
Canvas: Update call ImGui::IsClippedEx() on ImGui > 18415 (#138)
1 parent 1560f87 commit d79ebde

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/CHANGELOG.txt

+2
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,6 @@ v0.9.1 (WIP):
159159
BUGFIX: ImGui: Disable obsolete functions (#103)
160160

161161
BUGFIX: Editor: Allow nodes with zero size (#134)
162+
163+
BUGFIX: Canvas: Update call ImGui::IsClippedEx() on ImGui > 18415 (#138)
162164

imgui_canvas.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ bool ImGuiEx::Canvas::Begin(ImGuiID id, const ImVec2& size)
101101

102102
UpdateViewTransformPosition();
103103

104+
# if IMGUI_VERSION_NUM > 18415
105+
if (ImGui::IsClippedEx(m_WidgetRect, id))
106+
return false;
107+
# else
104108
if (ImGui::IsClippedEx(m_WidgetRect, id, false))
105109
return false;
110+
# endif
106111

107112
// Save current channel, so we can assert when user
108113
// call canvas API with different one.

0 commit comments

Comments
 (0)