mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-03 01:51:48 +00:00
winemac.drv: Fix redundant calls to [NSCursor set].
Since self.cursorFrames is a copy property, its pointer value will only equal frames when both are nil. Also return early from the function if the array contents are equivalent.
This commit is contained in:
parent
a6710afc26
commit
8f7483d04b
|
@ -1048,7 +1048,7 @@ - (void) nextCursorFrame:(NSTimer*)theTimer
|
|||
|
||||
- (void) setCursorWithFrames:(NSArray*)frames
|
||||
{
|
||||
if (self.cursorFrames == frames)
|
||||
if (self.cursorFrames == frames || [self.cursorFrames isEqualToArray:frames])
|
||||
return;
|
||||
|
||||
self.cursorFrames = frames;
|
||||
|
|
Loading…
Reference in a new issue