diff options
Diffstat (limited to 'src/engine/graphics')
-rw-r--r-- | src/engine/graphics/component_renderer.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/engine/graphics/component_renderer.cpp b/src/engine/graphics/component_renderer.cpp index eb024bc..effe153 100644 --- a/src/engine/graphics/component_renderer.cpp +++ b/src/engine/graphics/component_renderer.cpp @@ -21,7 +21,7 @@ void ComponentRenderer::render( const auto previous_pos = _cursor_controller->where(); _cursor_controller->hide(); - _cursor_controller->move_to(position); + _cursor_controller->move_to(position, true); _use_component_colors(component); @@ -61,15 +61,14 @@ void ComponentRenderer::render( const auto current_pos = _cursor_controller->where(); _cursor_controller->move_to( - Vector2({.x = previous_pos.get_x(), .y = current_pos.get_y() - 1})); + Vector2({.x = previous_pos.get_x(), .y = current_pos.get_y() - 1}), + true); } fmt::print(RESET_ALL_MODES, fmt::arg("esc", ESC)); - std::cout.flush(); - _cursor_controller->move_to(previous_pos); - _cursor_controller->show(); + _cursor_controller->show(true); } void ComponentRenderer::_use_component_colors( |