Lines Matching refs:newtop
256 Position oldtop, oldbot, newtop, newbot;
260 newtop = w->scrollbar.length * w->scrollbar.top;
261 newbot = newtop + (int)(w->scrollbar.length * w->scrollbar.shown);
262 if (newbot < newtop + w->scrollbar.min_thumb)
263 newbot = newtop + w->scrollbar.min_thumb;
264 w->scrollbar.topLoc = newtop;
265 w->scrollbar.shownLength = newbot - newtop;
268 if (newtop < oldtop) FillArea(w, newtop, MIN(newbot, oldtop), 1);
269 if (newtop > oldtop) FillArea(w, oldtop, MIN(newtop, oldbot), 0);
271 if (newbot > oldbot) FillArea(w, MAX(newtop, oldbot), newbot, 1);