From 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:18 +0200 Subject: Imported Upstream version 0.5.4 --- Header.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Header.c') diff --git a/Header.c b/Header.c index 9068817..a101821 100644 --- a/Header.c +++ b/Header.c @@ -1,6 +1,6 @@ /* -htop -(C) 2004 Hisham H. Muhammad +htop - Header.c +(C) 2004,2005 Hisham H. Muhammad Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ @@ -36,7 +36,9 @@ typedef struct Header_ { }*/ +#ifndef MAX #define MAX(a,b) ((a)>(b)?(a):(b)) +#endif Header* Header_new(ProcessList* pl) { Header* this = malloc(sizeof(Header)); @@ -139,6 +141,7 @@ void Header_draw(Header* this) { int height = this->height; int pad = this->pad; + attrset(CRT_colors[RESET_COLOR]); for (int y = 0; y < height; y++) { mvhline(y, 0, ' ', COLS); } -- cgit v1.2.3