comparison lwlib/xlwscrollbar.c @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents 6240c7796c7a
children 2f8bb876ab1d
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
977 977
978 /* Don't let slider get smaller than SS_MIN */ 978 /* Don't let slider get smaller than SS_MIN */
979 if (ss < SS_MIN) 979 if (ss < SS_MIN)
980 { 980 {
981 /* add a percent amount for integer rounding */ 981 /* add a percent amount for integer rounding */
982 float tmp = ((((float) (SS_MIN - ss) * (float) value)) / total) + 0.5; 982 float tmp = (((float) (SS_MIN - ss) * (float) value) / total) + 0.5;
983 983
984 above -= (int) tmp; 984 above -= (int) tmp;
985 ss = SS_MIN; 985 ss = SS_MIN;
986 below = (int) ((height) - (ss + above)); 986 below = (int) ((height) - (ss + above));
987 987