Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 076d6f05 authored by Deucе's avatar Deucе 👌🏾

Fix initial bar calculation.

After calculating i (offset in list to top of window), if it's less
than zero, apply it to bar and set i = 0.

Fixes #218
parent 838f6752
Pipeline #1308 passed with stage
in 9 minutes and 55 seconds
......@@ -928,6 +928,10 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if((*bar)<0)
(*bar)=0;
i=(*cur)-(*bar);
if (i < 0) {
*bar += i;
i = 0;
}
if(i+(height-vbrdrsize-1)>=opts) {
(*bar)=(height-vbrdrsize);
if (*bar > *cur)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment