diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
commit | 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (patch) | |
tree | afaa05858260763c1d25fa092f3905cf51ffd7b2 /Header.c | |
parent | 031c3bb95f3d0a74d985286068baa6dd4d29d83f (diff) | |
download | debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.gz debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.bz2 debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.zip |
Imported Upstream version 0.5.4upstream/0.5.4
Diffstat (limited to 'Header.c')
-rw-r--r-- | Header.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); } |