1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 08:26:45 +02:00

allow friendlist to scroll up and down if friends overflow the window

This commit is contained in:
Jfreegman
2013-12-02 18:23:04 -05:00
parent 81c48f7b2b
commit 7a89229375
5 changed files with 19 additions and 12 deletions

View File

@ -166,7 +166,7 @@ bool valid_nick(uint8_t *nick)
*/
/* Adds char to buffer at pos */
void add_char_to_buf(wint_t ch, wchar_t *buf, size_t *pos, size_t *len)
void add_char_to_buf(wchar_t *buf, size_t *pos, size_t *len, wint_t ch)
{
if (*pos < 0 || *len >= MAX_STR_SIZE)
return;
@ -197,7 +197,7 @@ void del_char_buf_bck(wchar_t *buf, size_t *pos, size_t *len)
--(*len);
}
/* Deletes the character at pos */
/* Deletes the character after pos */
void del_char_buf_frnt(wchar_t *buf, size_t *pos, size_t *len)
{
if (*pos < 0 || *pos >= *len)