From: Jean-Philippe Orsini Date: Sat, 31 May 2014 22:08:00 +0000 (+0200) Subject: fixed default sensor color which was always black. X-Git-Tag: v1.0.1~9 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=b5a129a3038e7934677a35f67835226afc18b423 fixed default sensor color which was always black. --- diff --git a/NEWS b/NEWS index a8edf26..c624f60 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,7 @@ v1.0.1 * Merged chinese translation from LP. * Added support of swedish translation (Josef Andersson). * Fixed NVIDIA strings. +* Fixed default sensor color which was always black. v0.8.0.6 -------- diff --git a/NEWS.html b/NEWS.html index b2d91ad..3ab62f4 100644 --- a/NEWS.html +++ b/NEWS.html @@ -458,6 +458,11 @@ Added support of swedish translation (Josef Andersson). Fixed NVIDIA strings.

+
  • +

    +Fixed default sensor color which was always black. +

    +
  • @@ -2581,7 +2586,7 @@ Fixed BR1: crash when no temperature sensor is available

    diff --git a/src/main.c b/src/main.c index 3d93fd0..c6325d8 100644 --- a/src/main.c +++ b/src/main.c @@ -266,7 +266,7 @@ static void associate_colors(struct psensor **sensors) int i; struct color c; - for (cur = sensors, i = 0; *cur; cur++) { + for (cur = sensors, i = 0; *cur; cur++, i++) { color_set(&c, colors[i % COLORS_COUNT][0], colors[i % COLORS_COUNT][1],