aboutsummaryrefslogtreecommitdiffstats
path: root/Header.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:18 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:18 +0200
commit2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (patch)
treeafaa05858260763c1d25fa092f3905cf51ffd7b2 /Header.c
parent031c3bb95f3d0a74d985286068baa6dd4d29d83f (diff)
downloaddebian_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.c7
1 files changed, 5 insertions, 2 deletions
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);
}

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