comparison lwlib/xlwscrollbar.c @ 434:9d177e8d4150 r21-2-25

Import from CVS: tag r21-2-25
author cvs
date Mon, 13 Aug 2007 11:30:53 +0200
parents 3ecd8885ac67
children abe6d1db359e
comparison
equal deleted inserted replaced
433:892ca416f0fb 434:9d177e8d4150
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