From 266ab52b3a741a58fb17c48b0f7939d7c5d266de Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:19 +0200 Subject: Imported Upstream version 0.6 --- ClockMeter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ClockMeter.c') 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); } -- cgit v1.2.3