aboutsummaryrefslogtreecommitdiffstats
path: root/ClockMeter.c
diff options
context:
space:
mode:
authorBartosz Fenski <fenio@debian.org>2005-12-29 13:22:07 +0100
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:19 +0200
commit73c04eaf1f6f01d0f8c15e8b70f68eda70bebc37 (patch)
tree054866c7de4fa4511c30658857f820724d686ec5 /ClockMeter.c
parent55a3aa9e6a59c1bf0248869d9f08e31ec4057c61 (diff)
parent266ab52b3a741a58fb17c48b0f7939d7c5d266de (diff)
downloaddebian_htop-73c04eaf1f6f01d0f8c15e8b70f68eda70bebc37.tar.gz
debian_htop-73c04eaf1f6f01d0f8c15e8b70f68eda70bebc37.tar.bz2
debian_htop-73c04eaf1f6f01d0f8c15e8b70f68eda70bebc37.zip
Imported Debian patch 0.6-1debian/0.6-1
Diffstat (limited to 'ClockMeter.c')
-rw-r--r--ClockMeter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ClockMeter.c b/ClockMeter.c
index 9469a35..2a27906 100644
--- a/ClockMeter.c
+++ b/ClockMeter.c
@@ -30,7 +30,7 @@ struct ClockMeter_ {
ClockMeter* ClockMeter_new() {
ClockMeter* this = malloc(sizeof(ClockMeter));
Meter_init((Meter*)this, String_copy("Clock"), String_copy("Time: "), 1);
- ((Meter*)this)->attributes[0] = &(CRT_colors[CLOCK]);
+ ((Meter*)this)->attributes[0] = CLOCK;
((Meter*)this)->setValues = ClockMeter_setValues;
((Object*)this)->display = ClockMeter_display;
((Meter*)this)->total = 24 * 60;
@@ -50,5 +50,5 @@ void ClockMeter_setValues(Meter* cast) {
void ClockMeter_display(Object* cast, RichString* out) {
Meter* super = (Meter*) cast;
ClockMeter* this = (ClockMeter*) cast;
- RichString_write(out, *(super->attributes[0]), this->clock);
+ RichString_write(out, CRT_colors[super->attributes[0]], this->clock);
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy