Lines Matching refs:newtop
277 Position oldtop, oldbot, newtop, newbot;
281 newtop = w->scrollbar.length * w->scrollbar.top;
282 newbot = newtop + (int)(w->scrollbar.length * w->scrollbar.shown);
283 if (newbot < newtop + (int)w->scrollbar.min_thumb)
284 newbot = newtop + w->scrollbar.min_thumb;
285 w->scrollbar.topLoc = newtop;
286 w->scrollbar.shownLength = newbot - newtop;
289 if (newtop < oldtop) FillArea(w, newtop, MIN(newbot, oldtop), 1);
290 if (newtop > oldtop) FillArea(w, oldtop, MIN(newtop, oldbot), 0);
292 if (newbot > oldbot) FillArea(w, MAX(newtop, oldbot), newbot, 1);