diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-02 12:17:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:00 +0200 |
commit | 87f55120f96d0f4f80b497dc9006d89df2dda125 (patch) | |
tree | 4aba3a77b268c9ff97b146e2a02626931d9a3122 /src/engine/graphics | |
parent | 62164c0abd9c5f563fe8fe57d51b5dc003816c49 (diff) |
refactor: have cursor controller inverting input positions
Diffstat (limited to 'src/engine/graphics')
-rw-r--r-- | src/engine/graphics/statusline.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/engine/graphics/statusline.cpp b/src/engine/graphics/statusline.cpp index a8d0f3b..bc83993 100644 --- a/src/engine/graphics/statusline.cpp +++ b/src/engine/graphics/statusline.cpp @@ -58,13 +58,9 @@ auto StatusLine::_move_to_statusline(int32_t x) noexcept -> Vector2 { const auto previous_position = _cursor_controller->where(); - const auto scene_size = _scene->size(); - _cursor_controller->hide(); - auto scene_height = static_cast<Vector2::Value>(scene_size.get_height()); - - _cursor_controller->move_to(Vector2({.x = x, .y = scene_height})); + _cursor_controller->move_to(Vector2({.x = x, .y = 0})); return previous_position; } |