From 93d30f5a16087f0019632b4c7826175d5371f01d Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sat, 6 Aug 2005 08:13:19 +0000 Subject: [PATCH] tiny fix git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@67 7f574dfc-610e-0410-a909-a81674777703 --- app-admin/conky/conky-1.2.ebuild | 2 +- app-admin/conky/conky-1.9999.ebuild | 2 +- conky.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app-admin/conky/conky-1.2.ebuild b/app-admin/conky/conky-1.2.ebuild index af7e9aaa..85ca8f50 100755 --- a/app-admin/conky/conky-1.2.ebuild +++ b/app-admin/conky/conky-1.2.ebuild @@ -4,7 +4,7 @@ inherit eutils -DESCRIPTION="minimalist system monitor for X based on torsmo" +DESCRIPTION="Conky is an advanced, highly configurable system monitor for X" HOMEPAGE="http://conky.rty.ca" SRC_URI="http://conky.rty.ca/${P}.tar.bz2" diff --git a/app-admin/conky/conky-1.9999.ebuild b/app-admin/conky/conky-1.9999.ebuild index 6bb2e7a4..6ce97608 100644 --- a/app-admin/conky/conky-1.9999.ebuild +++ b/app-admin/conky/conky-1.9999.ebuild @@ -5,7 +5,7 @@ ECVS_SERVER="cvs.sourceforge.net:/cvsroot/conky" ECVS_MODULE="conky" inherit cvs -DESCRIPTION="minimalist system monitor for X based on torsmo" +DESCRIPTION="Conky is an advanced, highly configurable system monitor for X" HOMEPAGE="http://conky.rty.ca" LICENSE="BSD" diff --git a/conky.c b/conky.c index d66945c5..934c8d56 100644 --- a/conky.c +++ b/conky.c @@ -3012,13 +3012,13 @@ static void draw_line(char *s) float gradient_factor = 0; float gradient_update = 0; unsigned int tmpcolour = current_color; - if (specials[special_index].first_colour != 0 && specials[special_index].last_colour != 0) { + if (specials[special_index].first_colour != specials[special_index].last_colour) { tmpcolour = specials[special_index].first_colour; gradient_size = gradient_max(specials[special_index].first_colour, specials[special_index].last_colour); gradient_factor = (float)gradient_size / (w - 3); } for (i = 0; i < w - 3; i++) { - if (specials[special_index].first_colour != 0 && specials[special_index].last_colour != 0) { + if (specials[special_index].first_colour != specials[special_index].last_colour) { XSetForeground(display, window.gc, tmpcolour); gradient_update += gradient_factor; while (gradient_update > 0) {