You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When using this function it is sane to ensure that float are perfectly rounded to integer values, to that e.g. (int)(max.x-min.x) in user's render produce correct result.
4170
+
// Push a clipping rectangle for both ImGui logic (hit-testing etc.) and low-level ImDrawList rendering.
4171
+
// - When using this function it is sane to ensure that float are perfectly rounded to integer values,
4172
+
// so that e.g. (int)(max.x-min.x) in user's render produce correct result.
4173
+
// - If the code here changes, may need to update code of functions like NextColumn() and PushColumnClipRect():
4174
+
// some frequently called functions which to modify both channels and clipping simultaneously tend to use a more
4175
+
// specialized code path to added extraneous updates of the underlying ImDrawCmd.
Copy file name to clipboardExpand all lines: imgui_internal.h
+1
Original file line number
Diff line number
Diff line change
@@ -435,6 +435,7 @@ struct IMGUI_API ImRect
435
435
voidClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max, r.Min, r.Max); } // Full version, ensure both points are fully clipped.
0 commit comments