summaryrefslogtreecommitdiff
path: root/vchat-ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-xvchat-ui.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/vchat-ui.c b/vchat-ui.c
index 82a6840..745ada8 100755
--- a/vchat-ui.c
+++ b/vchat-ui.c
@@ -492,7 +492,7 @@ writescr ( WINDOW *win, struct sb_entry *entry ) {
492 /* store original attributes */ 492 /* store original attributes */
493 WATTR_GET( win, orgattr); 493 WATTR_GET( win, orgattr);
494 attrbuffer[ 0 ] = orgattr; 494 attrbuffer[ 0 ] = orgattr;
495 495
496 /* copy time string */ 496 /* copy time string */
497 for( i = 0; i < timelen; i++ ) 497 for( i = 0; i < timelen; i++ )
498 if( tmp[ i ] == 1 ) { 498 if( tmp[ i ] == 1 ) {
@@ -871,13 +871,13 @@ gettextwidth (const char *textbuffer)
871 do switch( *(textbuffer++) ) { 871 do switch( *(textbuffer++) ) {
872 case 1: 872 case 1:
873 if (!*(textbuffer++)) return width; 873 if (!*(textbuffer++)) return width;
874 break; 874 break;
875 case 0: 875 case 0:
876 return width; 876 return width;
877 break; 877 break;
878 default: 878 default:
879 width++; 879 width++;
880 break; 880 break;
881 } while( 1 ); 881 } while( 1 );
882} 882}
883 883
@@ -920,20 +920,20 @@ getsbeheight (struct sb_entry *entry, const int xwidth, int needstime )
920 break; 920 break;
921 case 1: 921 case 1:
922 if (!*textbuffer++) return lines; 922 if (!*textbuffer++) return lines;
923 break; 923 break;
924 case 0: 924 case 0:
925 return lines; 925 return lines;
926 break; 926 break;
927 case 2: 927 case 2:
928 textbuffer=entry->what; 928 textbuffer=entry->what;
929 break; 929 break;
930 default: 930 default:
931 if( curx++ == xwidth ) { 931 if( curx++ == xwidth ) {
932 curx = 0; lines++; 932 curx = 0; lines++;
933 } 933 }
934 break; 934 break;
935 } while( 1 ); 935 } while( 1 );
936 936
937} 937}
938 938
939/* Check, which kind of filter we have to apply: 939/* Check, which kind of filter we have to apply: