mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 08:51:57 +00:00
Define new cursor backend methods replacing -setcursorcolor:::. And use
these. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32179 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f2c7420e36
commit
003ea0982a
5 changed files with 46 additions and 10 deletions
|
@ -553,20 +553,20 @@ static GSDragView *sharedDragView = nil;
|
|||
}
|
||||
}
|
||||
|
||||
[newCursor set];
|
||||
|
||||
if ((targetWindowRef != 0) && mask != NSDragOperationNone)
|
||||
{
|
||||
[GSCurrentServer() setcursorcolor: [NSColor greenColor]
|
||||
[GSCurrentServer() recolorcursor: [NSColor greenColor]
|
||||
: [NSColor blackColor]
|
||||
: [newCursor _cid]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[GSCurrentServer() setcursorcolor: [NSColor blackColor]
|
||||
[GSCurrentServer() recolorcursor: [NSColor blackColor]
|
||||
: [NSColor whiteColor]
|
||||
: [newCursor _cid]];
|
||||
}
|
||||
|
||||
[newCursor set];
|
||||
}
|
||||
|
||||
- (void) _sendLocalEvent: (GSAppKitSubtype)subtype
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue