diff options
| author | Selene ToyKeeper | 2021-11-03 04:46:56 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-11-03 04:46:56 -0600 |
| commit | c33100dcfbaee04e6992191defa3bf1e6be80b1e (patch) | |
| tree | 90bacc850546f0b0b13efc2445e674039c0394cb /spaghetti-monster | |
| parent | added runtime config to choose tint-ramping or tint-toggle (diff) | |
| download | anduril-c33100dcfbaee04e6992191defa3bf1e6be80b1e.tar.gz anduril-c33100dcfbaee04e6992191defa3bf1e6be80b1e.tar.bz2 anduril-c33100dcfbaee04e6992191defa3bf1e6be80b1e.zip | |
reset tint while changing tint ramp style
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/ramp-mode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/ramp-mode.c b/spaghetti-monster/anduril/ramp-mode.c index 851f5a4..93b936a 100644 --- a/spaghetti-monster/anduril/ramp-mode.c +++ b/spaghetti-monster/anduril/ramp-mode.c @@ -552,7 +552,11 @@ uint8_t ramp_extras_config_state(Event event, uint16_t arg) { void globals_config_save(uint8_t step, uint8_t value) { if (0) {} #ifdef USE_TINT_RAMPING - else if (step == 1+tint_style_config_step) { tint_style = value; } + else if (step == 1+tint_style_config_step) { + tint_style = !(!(value)); + // set tint to middle or edge depending on style being smooth or toggle + tint = tint_style ? 1 : 127; + } #endif #ifdef USE_JUMP_START else if (step == 1+jump_start_config_step) { jump_start_level = value; } |
