diff options
| author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-04 11:59:08 -0400 | 
|---|---|---|
| committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-04 14:12:39 -0400 | 
| commit | 95e95bb980d39c57544195715d508b6ccaee054d (patch) | |
| tree | 35c3ef5026df69ce97ef1be680c38d20ad86f41d | |
| parent | 74e866250920cb35b4575e0cdad47f63d4ae871d (diff) | |
| download | Sensor-Watch-95e95bb980d39c57544195715d508b6ccaee054d.tar.gz Sensor-Watch-95e95bb980d39c57544195715d508b6ccaee054d.tar.bz2 Sensor-Watch-95e95bb980d39c57544195715d508b6ccaee054d.zip | |
launcher: fix flickering in preferences widget
| -rw-r--r-- | launcher/widgets/settings/preferences_widget.c | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/launcher/widgets/settings/preferences_widget.c b/launcher/widgets/settings/preferences_widget.c index 878b775b..7e583c81 100644 --- a/launcher/widgets/settings/preferences_widget.c +++ b/launcher/widgets/settings/preferences_widget.c @@ -3,7 +3,7 @@  #include "watch.h"  #define PREFERENCES_WIDGET_NUM_PREFEFENCES (5) -const char preferences_widget_titles[PREFERENCES_WIDGET_NUM_PREFEFENCES][11] = {"CL", "Bt  Beep", "SC", "Lt   grn", "Lt   red"}; +const char preferences_widget_titles[PREFERENCES_WIDGET_NUM_PREFEFENCES][11] = {"CL        ", "Bt  Beep  ", "SC        ", "Lt   grn  ", "Lt   red  "};  void preferences_widget_setup(LauncherSettings *settings, void ** context_ptr) {      (void) settings; @@ -17,8 +17,6 @@ void preferences_widget_activate(LauncherSettings *settings, void *context) {  }  bool preferences_widget_loop(LauncherEvent event, LauncherSettings *settings, void *context) { -    (void) settings; -    (void) context;      printf("preferences_widget_loop\n");      uint8_t current_page = *((uint8_t *)context);      switch (event.bit.event_type) { @@ -53,7 +51,6 @@ bool preferences_widget_loop(LauncherEvent event, LauncherSettings *settings, vo              break;      } -    watch_clear_display();      watch_display_string((char *)preferences_widget_titles[current_page], 0);      if (event.bit.subsecond % 2) return current_page <= 2; | 
