summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 46ad650..de000ee 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2077,7 +2077,10 @@ int main(int argc, char *argv[])
if(b & SDL_BUTTON_LMASK)
set_cmode((cmode+1) % CM_COUNT);
if(b & SDL_BUTTON_RMASK)
- set_cmode((cmode+(CM_COUNT-1)) % CM_COUNT);
+ if((cmode+(CM_COUNT-1)) % CM_COUNT == CM_LIFE)
+ set_cmode(CM_GRAD);
+ else
+ set_cmode((cmode+(CM_COUNT-1)) % CM_COUNT);
save_presets(0);
}
if(x>=(XRES+BARSIZE-(510-494)) && x<=(XRES+BARSIZE-(510-509)) && !bq)