mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include "../../../poincare/src/layout/horizontal_layout.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
#include <stdlib.h>
|
||||
|
||||
using namespace Shared;
|
||||
@@ -64,14 +64,14 @@ bool TermSumController::handleEvent(Ion::Events::Event event) {
|
||||
if (m_step > 0 && m_startSum >= m_cursor->x()) {
|
||||
return false;
|
||||
}
|
||||
if (moveCursorHorizontallyToPosition(roundf(m_cursor->x()-1.0f))) {
|
||||
if (moveCursorHorizontallyToPosition(std::round(m_cursor->x()-1.0f))) {
|
||||
m_graphView->reload();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (event == Ion::Events::Right) {
|
||||
if (moveCursorHorizontallyToPosition(roundf(m_cursor->x()+1.0f))) {
|
||||
if (moveCursorHorizontallyToPosition(std::round(m_cursor->x()+1.0f))) {
|
||||
m_graphView->reload();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user