mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare/zoom] Remove rounding of abscissa
As margins are added later in InteractiveCurveViewRange::setDefault, rounding abscissa at this point is premature. Change-Id: I411dd014b712649efd55cb995ed7a9c5c14a7f43
This commit is contained in:
committed by
Émilie Feral
parent
ad6edffc07
commit
0465cec924
@@ -141,9 +141,6 @@ void Zoom::InterestingRangesForDisplay(ValueAtAbscissa evaluation, float * xMin,
|
||||
float xRange = resultX[1] - resultX[0];
|
||||
resultX[0] -= k_breathingRoom * xRange;
|
||||
resultX[1] += k_breathingRoom * xRange;
|
||||
/* Round to the next integer. */
|
||||
resultX[0] = std::floor(resultX[0]);
|
||||
resultX[1] = std::ceil(resultX[1]);
|
||||
}
|
||||
*xMin = std::min(resultX[0], *xMin);
|
||||
*xMax = std::max(resultX[1], *xMax);
|
||||
|
||||
Reference in New Issue
Block a user