aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-11-03 04:46:56 -0600
committerSelene ToyKeeper2021-11-03 04:46:56 -0600
commitc33100dcfbaee04e6992191defa3bf1e6be80b1e (patch)
tree90bacc850546f0b0b13efc2445e674039c0394cb
parentadded runtime config to choose tint-ramping or tint-toggle (diff)
downloadanduril-c33100dcfbaee04e6992191defa3bf1e6be80b1e.tar.gz
anduril-c33100dcfbaee04e6992191defa3bf1e6be80b1e.tar.bz2
anduril-c33100dcfbaee04e6992191defa3bf1e6be80b1e.zip
reset tint while changing tint ramp style
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/anduril/ramp-mode.c6
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; }
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.