File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -582,8 +582,8 @@ struct ImPlotRect {
582582 IMPLOT_API bool Contains (const ImPlotPoint& p) const { return Contains (p.x , p.y ); }
583583 IMPLOT_API bool Contains (double x, double y) const { return X.Contains (x) && Y.Contains (y); }
584584 IMPLOT_API ImPlotPoint Size () const { return ImPlotPoint (X.Size (), Y.Size ()); }
585- IMPLOT_API ImPlotPoint Clamp (const ImPlotPoint& p) { return Clamp (p.x , p.y ); }
586- IMPLOT_API ImPlotPoint Clamp (double x, double y) { return ImPlotPoint (X.Clamp (x),Y.Clamp (y)); }
585+ IMPLOT_API ImPlotPoint Clamp (const ImPlotPoint& p) const { return Clamp (p.x , p.y ); }
586+ IMPLOT_API ImPlotPoint Clamp (double x, double y) const { return ImPlotPoint (X.Clamp (x),Y.Clamp (y)); }
587587 IMPLOT_API ImPlotPoint Min () const { return ImPlotPoint (X.Min , Y.Min ); }
588588 IMPLOT_API ImPlotPoint Max () const { return ImPlotPoint (X.Max , Y.Max ); }
589589};
You can’t perform that action at this time.
0 commit comments