mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:40:38 +00:00
Tracking rect fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3980 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4342a44d3e
commit
275648662a
7 changed files with 399 additions and 362 deletions
|
@ -1377,16 +1377,19 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
|||
{
|
||||
GSTrackingRect *m;
|
||||
|
||||
m = [[[GSTrackingRect alloc] initWithRect: aRect
|
||||
tag: 0
|
||||
owner: anObject
|
||||
userData: NULL
|
||||
inside: YES] autorelease];
|
||||
m = [GSTrackingRect allocWithZone: NSDefaultMallocZone()];
|
||||
m = [m initWithRect: aRect
|
||||
tag: 0
|
||||
owner: anObject
|
||||
userData: NULL
|
||||
inside: YES];
|
||||
[cursor_rects addObject: m];
|
||||
[m release];
|
||||
}
|
||||
|
||||
- (void) discardCursorRects
|
||||
{
|
||||
[cursor_rects makeObjectsPerformSelector: @selector(invalidate)];
|
||||
[cursor_rects removeAllObjects];
|
||||
}
|
||||
|
||||
|
@ -1402,6 +1405,7 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
|||
c = [o owner];
|
||||
if (c == anObject)
|
||||
{
|
||||
[o invalidate];
|
||||
[cursor_rects removeObject: o];
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue