Fix the animated image view refresh rate issue when connecting a external monitor with different refresh rate
This commit is contained in:
parent
8237712d36
commit
3c28785d76
|
@ -281,8 +281,7 @@ static NSUInteger SDDeviceFreeMemory() {
|
|||
- (CVDisplayLinkRef)displayLink
|
||||
{
|
||||
if (!_displayLink) {
|
||||
CGDirectDisplayID displayID = CGMainDisplayID();
|
||||
CVReturn error = CVDisplayLinkCreateWithCGDisplay(displayID, &_displayLink);
|
||||
CVReturn error = CVDisplayLinkCreateWithActiveCGDisplays(&_displayLink);
|
||||
if (error) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue