Drawing fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3657 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-02-04 19:23:45 +00:00
parent 3af798bd4f
commit dc118a4c3c
3 changed files with 18 additions and 19 deletions

View file

@ -520,18 +520,9 @@ static BOOL preCalcValues = NO;
float oldFloatValue = _floatValue;
float floatValue;
NSDate *theDistantFuture = [NSDate distantFuture];
PSMatrix* matrix;
NSEventType eventType;
NSRect knobRect = {{0,0},{0,0}};
int periodCount = 0; // allows a forced update
NSMutableArray* path = [self _pathBetweenSubview: self
toSuperview: [window contentView]];
[path addObject: [window contentView]];
matrix = [self _concatenateMatricesInReverseOrderFromPath: path];
[matrix inverse];
//fprintf(stderr, " trackKnob \n");
[self _preCalcParts]; // pre calc scroller parts
preCalcValues = YES;
@ -546,7 +537,7 @@ static BOOL preCalcValues = NO;
if (eventType != NSPeriodic)
{
apoint = [theEvent locationInWindow];
// zero the periodic count whenever a real position event is recieved
// zero the periodic count whenever a real position event is received
periodCount = 0;
}
else
@ -556,7 +547,7 @@ static BOOL preCalcValues = NO;
if (periodCount == 6)
apoint = [window mouseLocationOutsideOfEventStream];
point = [matrix pointInMatrixSpace: apoint];
point = [self convertPoint:apoint fromView:nil];
if (point.x != knobRect.origin.x || point.y != knobRect.origin.y)
{