Coordinate system fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3691 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-02-11 14:56:30 +00:00
parent d181ea9940
commit dc1695e8f8
5 changed files with 43 additions and 63 deletions

View file

@ -271,9 +271,6 @@ static BOOL preCalcValues = NO;
- (void) setFloatValue: (float)aFloat
{
if (aFloat == _floatValue)
return;
if (aFloat < 0)
_floatValue = 0;
else if (aFloat > 1)
@ -791,8 +788,6 @@ static BOOL preCalcValues = NO;
// calc the slot Height
slotHeight = height - (arrowsPosition == NSScrollerArrowsNone ?
0 : 2 * (buttonsWidth + buttonsDistance));
if (_isHorizontal)
slotHeight -= 2;
knobHeight = _knobProportion * slotHeight;
if (knobHeight < buttonsWidth)
knobHeight = buttonsWidth;