summaryrefslogtreecommitdiff
path: root/Table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Table.cpp')
-rw-r--r--Table.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Table.cpp b/Table.cpp
index be35faa..a209b13 100644
--- a/Table.cpp
+++ b/Table.cpp
@@ -72,3 +72,9 @@ void Table::draw(const Cursor& cursor)
LZR_DrawRectangle(true, x - s / 2, y, s, _lane);
}
}
+
+void Table::set_layer(int layer)
+{
+ _layer = layer;
+ _layer %= _depth;
+}