Commit 8f7483d0 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

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.
parent a6710afc
......@@ -1048,7 +1048,7 @@ static NSString* WineLocalizedString(unsigned int stringID)
- (void) setCursorWithFrames:(NSArray*)frames
{
if (self.cursorFrames == frames)
if (self.cursorFrames == frames || [self.cursorFrames isEqualToArray:frames])
return;
self.cursorFrames = frames;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment