Merge pull request #3607 from dreampiggy/bugfix/watchOS_displayLink
Fix the SDDisplayLink on watchOS does not behave like other platform
This commit is contained in:
commit
5b14f51ae1
|
@ -197,7 +197,7 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
|
|||
self.displayLink.paused = NO;
|
||||
#else
|
||||
if (self.displayLink.isValid) {
|
||||
[self.displayLink fire];
|
||||
// Do nothing
|
||||
} else {
|
||||
SDWeakProxy *weakProxy = [SDWeakProxy proxyWithTarget:self];
|
||||
self.displayLink = [NSTimer timerWithTimeInterval:kSDDisplayLinkInterval target:weakProxy selector:@selector(displayLinkDidRefresh:) userInfo:nil repeats:YES];
|
||||
|
|
Loading…
Reference in New Issue