comparison mcabber/src/screen.c @ 1077:c51ca5225516

Remove useless WindowWidth function
author Mikael Berthe <mikael@lilotux.net>
date Mon, 04 Dec 2006 19:05:58 +0100
parents b9698c89f46d
children 7866dbaf67a6
comparison
equal deleted inserted replaced
1076:b9698c89f46d 1077:c51ca5225516
114 void scr_WriteInWindow(const char *winId, const char *text, time_t timestamp, 114 void scr_WriteInWindow(const char *winId, const char *text, time_t timestamp,
115 unsigned int prefix_flags, int force_show); 115 unsigned int prefix_flags, int force_show);
116 116
117 117
118 /* Functions */ 118 /* Functions */
119
120 static int scr_WindowWidth(WINDOW * win)
121 {
122 int x, y;
123 getmaxyx(win, y, x);
124 return x;
125 }
126 119
127 static int FindColor(const char *name) 120 static int FindColor(const char *name)
128 { 121 {
129 if (!strcmp(name, "default")) 122 if (!strcmp(name, "default"))
130 return -1; 123 return -1;
502 int width; 495 int width;
503 hbb_line **lines, *line; 496 hbb_line **lines, *line;
504 GList *hbuf_head; 497 GList *hbuf_head;
505 char date[64]; 498 char date[64];
506 499
507 width = scr_WindowWidth(win_entry->win); 500 width = getmaxx(win_entry->win);
508 501
509 // Should the window be empty? 502 // Should the window be empty?
510 if (win_entry->cleared) { 503 if (win_entry->cleared) {
511 werase(win_entry->win); 504 werase(win_entry->win);
512 return; 505 return;