diff --git a/SDWebImage/SDAnimatedImageView.m b/SDWebImage/SDAnimatedImageView.m index dcd7facc..fad2a91d 100644 --- a/SDWebImage/SDAnimatedImageView.m +++ b/SDWebImage/SDAnimatedImageView.m @@ -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; }