From 87f55120f96d0f4f80b497dc9006d89df2dda125 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 2 Jun 2022 12:17:23 +0200 Subject: refactor: have cursor controller inverting input positions --- src/engine/graphics/statusline.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/engine/graphics') 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(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; } -- cgit v1.2.3-18-g5258