Lines Matching refs:newtop
347 Position oldtop, oldbot, newtop, newbot; in PaintThumb() local
352 newtop = margin + (int)(tzl * sbw->scrollbar.top); in PaintThumb()
353 newbot = newtop + (int)(tzl * sbw->scrollbar.shown) + 1; in PaintThumb()
354 if (newbot < newtop + (int)sbw->scrollbar.min_thumb) in PaintThumb()
355 newbot = newtop + sbw->scrollbar.min_thumb; in PaintThumb()
359 sbw->scrollbar.topLoc = newtop; in PaintThumb()
360 sbw->scrollbar.shownLength = newbot - newtop; in PaintThumb()
363 if (newtop < oldtop) in PaintThumb()
364 FillArea(sbw, newtop, AT_MIN(newbot, oldtop+1),1,0); in PaintThumb()
365 if (newtop > oldtop) in PaintThumb()
366 FillArea(sbw, oldtop, AT_MIN(newtop, oldbot ),0,0); in PaintThumb()
370 FillArea(sbw, AT_MAX(newtop, oldbot-1), newbot, 1,0); in PaintThumb()
373 FillArea(sbw, newtop, newbot, 0, 1); in PaintThumb()