aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-10 20:16:14 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:55 +0200
commitc988905add09cf8baf46dc61279528f6f39f7a1a (patch)
tree0c53a36569875f8d4c6e53392876e10fa695c35e /src/bootstrap.cpp
parent38f14606c78c119d452f302f17329455e29a9a6f (diff)
feat: add status bar
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r--src/bootstrap.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp
index 8aeba85..5ff71db 100644
--- a/src/bootstrap.cpp
+++ b/src/bootstrap.cpp
@@ -70,10 +70,12 @@ Container bootstrap()
});
container.bind<ISceneFactory>().to_factory(normalize_lambda(
- [&container]()
+ [&container](const std::shared_ptr<ICursorController> &cursor_controller,
+ const std::shared_ptr<IWindow> &window)
{
- return std::dynamic_pointer_cast<IScene>(std::make_shared<Scene>(
- container.get<IMatrixFactory<std::string_view>>()));
+ return std::dynamic_pointer_cast<IScene>(
+ std::make_shared<Scene>(container.get<IMatrixFactory<std::string_view>>(),
+ cursor_controller, window));
}));
return container;