[apps/graph] Faster cursor scrolling on device

This commit is quite dirty but works well
This commit is contained in:
Léa Saviot
2019-09-06 16:27:52 +02:00
parent 2d9eeaedd6
commit e67160b878
18 changed files with 70 additions and 50 deletions

View File

@@ -82,9 +82,9 @@ void GraphController::viewWillAppear() {
/* Since *m_selectedDotIndex is altered by initCursorParameters(),
* the following must absolutely come at the end. */
if (*m_selectedDotIndex >= 0) {
m_view.setCursorView(static_cast<View *>(&m_crossCursorView));
m_view.setCursorView(static_cast<Shared::CursorView *>(&m_crossCursorView));
} else {
m_view.setCursorView(static_cast<View *>(&m_roundCursorView));
m_view.setCursorView(static_cast<Shared::CursorView *>(&m_roundCursorView));
m_roundCursorView.setColor(Palette::DataColor[*m_selectedSeriesIndex]);
}
}