rem: if (sPtr->flags.arrowsPosition == WSAMaxEnd) { length -= (SCROLLER_WIDTH - 4 + 1)*2; } else if (sPtr->flags.arrowsPosition == WSAMinEnd) { length -= (SCROLLER_WIDTH - 4 + 1)*2;
add: if (sPtr->flags.arrowsPosition != WSANone) { length -= 2*(BUTTON_SIZE+1);
context: knobLength(Scroller *sPtr){    int tmp, length;        if (sPtr->flags.horizontal)	length = sPtr->view->size.width - 4;    else	length = sPtr->view->size.height - 4;    if (sPtr->flags.arrowsPosition == WSAMaxEnd) {	length -= (SCROLLER_WIDTH - 4 + 1)*2;    } else if (sPtr->flags.arrowsPosition == WSAMinEnd) {	length -= (SCROLLER_WIDTH - 4 + 1)*2;    }        tmp = (int)((float)length * sPtr->knobProportion + 0.5);    /* keep minimum size */    if (tmp < SCROLLER_WIDTH-4)	tmp = SCROLLER_WIDTH-4;        return tmp;}