From 8a5c637eb7210aa6a69f90567c55ee2b1afd5706 Mon Sep 17 00:00:00 2001 From: codingjourney Date: Thu, 12 Dec 2024 08:20:57 +0100 Subject: prevent unnecessary redrawing of the time label --- src/displayapp/screens/StopWatch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/displayapp/screens/StopWatch.h') diff --git a/src/displayapp/screens/StopWatch.h b/src/displayapp/screens/StopWatch.h index 51920f8b..249eec84 100644 --- a/src/displayapp/screens/StopWatch.h +++ b/src/displayapp/screens/StopWatch.h @@ -7,6 +7,7 @@ #include "systemtask/SystemTask.h" #include "systemtask/WakeLock.h" #include "Symbols.h" +#include "utility/DirtyValue.h" namespace Pinetime::Applications { namespace Screens { @@ -16,6 +17,7 @@ namespace Pinetime::Applications { int mins; int secs; int hundredths; + int epochSecs; }; class StopWatch : public Screen { @@ -47,6 +49,7 @@ namespace Pinetime::Applications { int displayedLaps = 3; lv_obj_t *time, *msecTime, *btnPlayPause, *btnStopLap, *txtPlayPause, *txtStopLap; lv_obj_t* lapText; + Utility::DirtyValue renderedSeconds; bool hoursVisible = false; lv_task_t* taskRefresh; -- cgit v1.2.3-70-g09d2