diff options
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index fa6a5daedd..ebe9ac50b1 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c | |||
@@ -655,10 +655,12 @@ const char *get_token_value(struct gui_wps *gwps, | |||
655 | 655 | ||
656 | if (intval) | 656 | if (intval) |
657 | { | 657 | { |
658 | limit = MAX(limit, 2); | 658 | limit = MAX(limit, 3); |
659 | if (l > -1) { | 659 | if (l > -1) { |
660 | /* First enum is used for "unknown level". */ | 660 | /* First enum is used for "unknown level", |
661 | *intval = (limit - 1) * l / 100 + 2; | 661 | * last enum is used for 100%. |
662 | */ | ||
663 | *intval = (limit - 2) * l / 100 + 2; | ||
662 | } else { | 664 | } else { |
663 | *intval = 1; | 665 | *intval = 1; |
664 | } | 666 | } |