411 |
if (!ptr_message || |
if (!ptr_message || |
412 |
(window->win_chat_cursor_x > (window->win_chat_width - 1))) |
(window->win_chat_cursor_x > (window->win_chat_width - 1))) |
413 |
{ |
{ |
|
window->win_chat_cursor_x = 0; |
|
414 |
if (lines_displayed >= num_lines - count) |
if (lines_displayed >= num_lines - count) |
415 |
{ |
{ |
416 |
|
if (window->win_chat_cursor_x <= window->win_chat_width - 1) |
417 |
|
wclrtoeol (window->win_chat); |
418 |
window->win_chat_cursor_y++; |
window->win_chat_cursor_y++; |
419 |
} |
} |
420 |
|
window->win_chat_cursor_x = 0; |
421 |
lines_displayed++; |
lines_displayed++; |
422 |
} |
} |
423 |
} |
} |
505 |
if (!ptr_message || |
if (!ptr_message || |
506 |
((window->win_chat_cursor_y <= window->win_chat_height - 1) && |
((window->win_chat_cursor_y <= window->win_chat_height - 1) && |
507 |
(window->win_chat_cursor_x > window->win_chat_width - 1))) |
(window->win_chat_cursor_x > window->win_chat_width - 1))) |
508 |
|
{ |
509 |
|
if (window->win_chat_cursor_x <= window->win_chat_width - 1) |
510 |
|
wclrtoeol (window->win_chat); |
511 |
window->win_chat_cursor_y++; |
window->win_chat_cursor_y++; |
512 |
|
} |
513 |
window->win_chat_cursor_x = 0; |
window->win_chat_cursor_x = 0; |
514 |
} |
} |
515 |
} |
} |
595 |
if (window != gui_current_window) |
if (window != gui_current_window) |
596 |
return; |
return; |
597 |
|
|
598 |
gui_curses_window_clear (window->win_chat); |
//gui_curses_window_clear (window->win_chat); |
599 |
gui_draw_window_chat (window); |
gui_draw_window_chat (window); |
600 |
} |
} |
601 |
|
|
631 |
window->win_nick_width, |
window->win_nick_width, |
632 |
window->win_nick_y, |
window->win_nick_y, |
633 |
window->win_nick_x); |
window->win_nick_x); |
634 |
gui_redraw_window_chat (window); |
gui_draw_window_chat (window); |
635 |
} |
} |
636 |
sprintf (format, "%%-%ds", max_length); |
sprintf (format, "%%-%ds", max_length); |
637 |
|
|
1698 |
if ((window->win_chat_cursor_y |
if ((window->win_chat_cursor_y |
1699 |
+ gui_get_line_num_splits (window, window->last_line)) > |
+ gui_get_line_num_splits (window, window->last_line)) > |
1700 |
(window->win_chat_height - 1)) |
(window->win_chat_height - 1)) |
1701 |
gui_redraw_window_chat (window); |
gui_draw_window_chat (window); |
1702 |
else |
else |
1703 |
gui_display_line (window, window->last_line, 1); |
gui_display_line (window, window->last_line, 1); |
1704 |
} |
} |