From 4b8db1ab0ae53bd8f6685af2fb55a550c04f8199 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 23 May 2022 19:46:11 +0200 Subject: refactor: use char as matrix element in scene --- src/engine/graphics/scene.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/engine/graphics/scene.cpp') diff --git a/src/engine/graphics/scene.cpp b/src/engine/graphics/scene.cpp index b0d77b8..7a0e960 100644 --- a/src/engine/graphics/scene.cpp +++ b/src/engine/graphics/scene.cpp @@ -11,13 +11,13 @@ #include Scene::Scene( - IMatrixFactory matrix_factory, + IMatrixFactory matrix_factory, std::shared_ptr cursor_controller) noexcept : _matrix(matrix_factory(size() - Bounds({.width = 0U, .height = 1U}))), _cursor_controller(std::move(cursor_controller)), _is_shown(false) { - _matrix->fill(" "); + _matrix->fill(' '); } void Scene::enter() noexcept @@ -80,8 +80,7 @@ auto Scene::size() const noexcept -> Bounds return Bounds({window_size.ws_col, window_size.ws_row}); } -auto Scene::get_matrix() const noexcept - -> const std::shared_ptr> & +auto Scene::get_matrix() const noexcept -> const std::shared_ptr> & { return _matrix; } -- cgit v1.2.3-18-g5258