From a285df324deb579d262ea7cf484de4d6b11b28e4 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 6 Mar 2022 13:26:14 +0100 Subject: refactor: improve getters & setters for vector2 & bounds --- src/engine/user/cursor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/engine/user') 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(); } -- cgit v1.2.3-18-g5258