Skip to content
Snippets Groups Projects
Commit 6b92e551 authored by deuce's avatar deuce
Browse files

Fix logic for drawing scroll arrows after a page up.

parent 6859e86f
No related branches found
No related tags found
No related merge requests found
......@@ -1218,12 +1218,12 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
y=top+tbrdrwidth;
gotoxy(s_left+left+lbrdrwidth,s_top+top+tbrdrwidth);
textattr(lclr|(bclr<<4));
if(*cur && opts>height-tbrdrwidth) /* Scroll mode */
if(*cur) /* Scroll mode */
putch(30); /* put the up arrow */
else
putch(' '); /* delete the up arrow */
gotoxy(s_left+left+lbrdrwidth,s_top+top+height-bbrdrwidth-1);
if(opts > height-tbrdrwidth && *cur + height - vbrdrsize < opts)
if(opts >= height-tbrdrwidth && *cur + height - vbrdrsize < opts)
putch(31); /* put the down arrow */
else
putch(' '); /* delete the down arrow */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment