Skip to content
Snippets Groups Projects
Commit 076d6f05 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1308 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment