Skip to content

Commit

Permalink
[apps/shared] Improve discontinuity detection with strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoNumworks authored and EmilieNumworks committed Jun 17, 2021
1 parent 09dd52c commit 2702b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/shared/curve_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ void CurveView::drawHistogram(KDContext * ctx, KDRect rect, EvaluateYForX yEvalu
}

static bool pointInBoundingBox(float x1, float y1, float x2, float y2, float xC, float yC) {
return ((x1 <= xC && xC <= x2) || (x2 <= xC && xC <= x1))
&& ((y1 <= yC && yC <= y2) || (y2 <= yC && yC <= y1));
return ((x1 < xC && xC < x2) || (x2 < xC && xC < x1) || (x2 == xC && xC == x1))
&& ((y1 < yC && yC < y2) || (y2 < yC && yC < y1) || (y2 == yC && yC == y1));
}

void CurveView::joinDots(KDContext * ctx, KDRect rect, EvaluateXYForFloatParameter xyFloatEvaluation , void * model, void * context, bool drawStraightLinesEarly, float t, float x, float y, float s, float u, float v, KDColor color, bool thick, int maxNumberOfRecursion, EvaluateXYForDoubleParameter xyDoubleEvaluation) const {
Expand Down

0 comments on commit 2702b77

Please sign in to comment.