diff options
| author | codingjourney <coding@journey.sk> | 2024-12-12 08:20:57 +0100 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2025-11-04 21:25:31 +0100 |
| commit | 8a5c637eb7210aa6a69f90567c55ee2b1afd5706 (patch) | |
| tree | e960276a6993559a5aa1ffaa5bb8720be34129da /src/displayapp/screens/StopWatch.h | |
| parent | 11436090f77ef2c6c706a6dc847c5709c40da383 (diff) | |
prevent unnecessary redrawing of the time label
Diffstat (limited to 'src/displayapp/screens/StopWatch.h')
| -rw-r--r-- | src/displayapp/screens/StopWatch.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<TickType_t> renderedSeconds; bool hoursVisible = false; lv_task_t* taskRefresh; |
