From c6547a8f626c40b2359cfa5ff6288f7d2e515f87 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 13 Jan 2019 13:28:19 +0100 Subject: Fix clean of contactList --- contactList.o | Bin 6320 -> 0 bytes contactWind.c | 12 +++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 contactList.o diff --git a/contactList.o b/contactList.o deleted file mode 100644 index 5fb4e69..0000000 Binary files a/contactList.o and /dev/null differ diff --git a/contactWind.c b/contactWind.c index c0baa26..7d47a62 100644 --- a/contactWind.c +++ b/contactWind.c @@ -54,7 +54,7 @@ void showContactListW(void) { firstConctactShow-=h/2; if( firstConctactShow < 0 ) firstConctactShow = 0; - + clearContactListW(); } @@ -71,8 +71,7 @@ void showContactListW(void) { int i; for(i = firstConctactShow ; i < (h+firstConctactShow) && i < s ; i++) { int color = 0, attr = A_NORMAL; -// if( it[i].opt == 1 ) -// color = COLOR_BLUE+1; + if( contactList[i].conversation ) attr |= A_BOLD; if( i == contactListSelection ) { @@ -82,14 +81,17 @@ void showContactListW(void) { attrset( COLOR_PAIR(color) | attr); move(y,x); printw("%*s", w, " "); + if( showName ) mvprintc(x,y++,contactList[i].display_name, w); else mvprintc(x,y++,contactList[i].number, w); + attrset(0 | A_NORMAL); } - for( ; i < s ; i++){ // Clear - + for( ; i < (h+firstConctactShow) ; i++){ // Clear + move(y++,x); + printw("%*s", w, " "); } } -- cgit v1.2.3