diff options
author | Riku Isokoski <riksu9000@gmail.com> | 2022-09-11 21:57:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 20:57:49 +0200 |
commit | c853681d753c7ca8e2fe7bb22ca046f46ec47460 (patch) | |
tree | 486d950b8566b98aacdae34bf9c6e7ba951fe2cd /src/displayapp/screens/Twos.h | |
parent | c9a5c3fa5c930a5939d3114a6c6b48570d61ca24 (diff) |
Reduce duplication in Twos (#1274)
Diffstat (limited to 'src/displayapp/screens/Twos.h')
-rw-r--r-- | src/displayapp/screens/Twos.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/displayapp/screens/Twos.h b/src/displayapp/screens/Twos.h index 4a6ada0b..da935724 100644 --- a/src/displayapp/screens/Twos.h +++ b/src/displayapp/screens/Twos.h @@ -18,11 +18,8 @@ namespace Pinetime { bool OnTouchEvent(TouchEvents event) override; private: - lv_style_t style_cell1; - lv_style_t style_cell2; - lv_style_t style_cell3; - lv_style_t style_cell4; - lv_style_t style_cell5; + static constexpr int nColors = 5; + lv_style_t cellStyles[nColors]; lv_obj_t* scoreText; lv_obj_t* gridDisplay; |