Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Reset to the default scheme, not the last one.
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Apr 9, 2015
1 parent 2f45008 commit 01737ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Settings.c
Expand Up @@ -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;
Expand Down

0 comments on commit 01737ed

Please sign in to comment.