diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-09 15:44:26 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-09 15:44:26 -0300 |
commit | 01737ed66b9bfcb2b983a8834060f3bae9bf7da1 (patch) | |
tree | 39f59aa17b9271312e94083d5e473b89a26268a3 /Settings.c | |
parent | 2f450084772bdddaafd77e107679d20572d43b5d (diff) |
Reset to the default scheme, not the last one.
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -208,8 +208,7 @@ static bool Settings_read(Settings* this, const char* fileName, int cpuCount) { this->delay = atoi(option[1]); } else if (String_eq(option[0], "color_scheme")) { this->colorScheme = atoi(option[1]); - if (this->colorScheme < 0) this->colorScheme = 0; - if (this->colorScheme >= LAST_COLORSCHEME) this->colorScheme = LAST_COLORSCHEME - 1; + if (this->colorScheme < 0 || this->colorScheme >= LAST_COLORSCHEME) this->colorScheme = 0; } else if (String_eq(option[0], "left_meters")) { Settings_readMeters(this, option[1], 0); readMeters = true; |