diff -urN cui70/scbar.c cui71/scbar.c --- cui70/scbar.c Sun Feb 9 22:00:00 2014 +++ cui71/scbar.c Sun Feb 9 23:00:00 2014 @@ -45,7 +45,9 @@ { cui_scbar p = (cui_scbar)obj; int pos_max = cui_scbar_thumb_pos_max(obj); - return pos * p->max_v / pos_max; + int vs = (pos * (p->max_v + 1) + pos_max) / (pos_max + 1); + int ve = ((pos + 1) * (p->max_v + 1) + pos_max) / (pos_max + 1) - 1; + return vs + (ve - vs) * pos / pos_max; } void