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:
Brendan Shanks 2023-10-12 21:39:05 -07:00 committed by Alexandre Julliard
parent a6710afc26
commit 8f7483d04b

View file

@ -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;