aboutsummaryrefslogtreecommitdiff
path: root/src/engine/user/cursor.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-06 13:26:14 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commita285df324deb579d262ea7cf484de4d6b11b28e4 (patch)
treee2d181d58a09826c318d7aab5bee66bad3cf484a /src/engine/user/cursor.cpp
parent0e40bc7ce8c3b3be083002f88c3317d65f6570ad (diff)
refactor: improve getters & setters for vector2 & bounds
Diffstat (limited to 'src/engine/user/cursor.cpp')
-rw-r--r--src/engine/user/cursor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/user/cursor.cpp b/src/engine/user/cursor.cpp
index d4a2997..44e24dc 100644
--- a/src/engine/user/cursor.cpp
+++ b/src/engine/user/cursor.cpp
@@ -7,8 +7,8 @@
void CursorController::move_to(const Vector2 &pos)
{
- fmt::print(MOVE_CURSOR_TO, fmt::arg("esc", ESC), fmt::arg("row", pos.y()),
- fmt::arg("column", pos.x()));
+ fmt::print(MOVE_CURSOR_TO, fmt::arg("esc", ESC), fmt::arg("row", pos.get_y()),
+ fmt::arg("column", pos.get_x()));
std::cout.flush();
}