diff options
Diffstat (limited to 'Table.cpp')
-rw-r--r-- | Table.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -30,16 +30,16 @@ void Table::update(const Cursor& cursor) const int y = cursor.y / _lane; if (y >= _height) return; - if (cursor.down) { + if (cursor.erase) { + _strength[_layer][y] = 0; + _edited = -1; + } else if (cursor.down) { if (y == _edited) _strength[_layer][y] += 2; else _strength[_layer][y] = 1; _notes[_layer][y] = util::min(CFG_DWIDTH - 1, util::max(0, cursor.x)); _edited = y; - } else if (cursor.erase) { - _strength[_layer][y] = 0; - _edited = -1; } else _edited = -1; _hovered = y; @@ -59,7 +59,7 @@ void Table::draw(const Cursor& cursor) LZR_DrawRectangle(true, 0, t * _lane, CFG_DWIDTH, _lane); } if (i == _hovered) { - cursor.set_color(); + cursor.set_color(int()); if (cursor.erase || (rand() & 3)) LZR_DrawRectangle(true, 0, y, CFG_DWIDTH, _lane); } |