From 4cf73fc169ec1f95abd9d50d5cad08538f7b947c Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Sun, 11 Sep 2022 16:22:28 +0200 Subject: Infineat : Add support for external resources, and read the images and fonts from the ilesystem --- src/displayapp/screens/Clock.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/displayapp/screens/Clock.cpp') diff --git a/src/displayapp/screens/Clock.cpp b/src/displayapp/screens/Clock.cpp index e9e03df0..bb29d6a4 100644 --- a/src/displayapp/screens/Clock.cpp +++ b/src/displayapp/screens/Clock.cpp @@ -23,7 +23,8 @@ Clock::Clock(DisplayApp* app, Controllers::NotificationManager& notificatioManager, Controllers::Settings& settingsController, Controllers::HeartRateController& heartRateController, - Controllers::MotionController& motionController) + Controllers::MotionController& motionController, + Controllers::FS& fs) : Screen(app), dateTimeController {dateTimeController}, batteryController {batteryController}, @@ -32,6 +33,7 @@ Clock::Clock(DisplayApp* app, settingsController {settingsController}, heartRateController {heartRateController}, motionController {motionController}, + fs{fs}, screen {[this, &settingsController]() { switch (settingsController.GetClockFace()) { case 0: @@ -115,5 +117,6 @@ std::unique_ptr Clock::WatchFaceInfineatScreen() { bleController, notificatioManager, settingsController, - motionController); + motionController, + fs); } -- cgit v1.2.3-70-g09d2