diff options
Diffstat (limited to 'src/engine/graphics')
| -rw-r--r-- | src/engine/graphics/scene.cpp | 7 | ||||
| -rw-r--r-- | src/engine/graphics/scene.hpp | 6 | 
2 files changed, 6 insertions, 7 deletions
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 <utility>  Scene::Scene( -	IMatrixFactory<std::string_view> matrix_factory, +	IMatrixFactory<MatrixElement> matrix_factory,  	std::shared_ptr<ICursorController> 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<IMatrix<std::string_view>> & +auto Scene::get_matrix() const noexcept -> const std::shared_ptr<IMatrix<MatrixElement>> &  {  	return _matrix;  } diff --git a/src/engine/graphics/scene.hpp b/src/engine/graphics/scene.hpp index e57e1f8..60b541a 100644 --- a/src/engine/graphics/scene.hpp +++ b/src/engine/graphics/scene.hpp @@ -17,7 +17,7 @@ class Scene : public IScene  {  public:  	explicit Scene( -		IMatrixFactory<std::string_view> matrix_factory, +		IMatrixFactory<MatrixElement> matrix_factory,  		std::shared_ptr<ICursorController> cursor_controller) noexcept;  	void enter() noexcept override; @@ -27,10 +27,10 @@ public:  	[[nodiscard]] auto size() const noexcept -> Bounds override;  	[[nodiscard]] auto get_matrix() const noexcept -		-> const std::shared_ptr<IMatrix<std::string_view>> & override; +		-> const std::shared_ptr<IMatrix<MatrixElement>> & override;  private: -	std::shared_ptr<IMatrix<std::string_view>> _matrix; +	std::shared_ptr<IMatrix<MatrixElement>> _matrix;  	std::shared_ptr<ICursorController> _cursor_controller;  	bool _is_shown;  | 
