mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-23 03:20:39 +08:00
Use threadSafeBounds instead of bounds to create drawing parameters
This commit is contained in:
@@ -174,7 +174,7 @@ struct ASImageNodeDrawParameters {
|
||||
ASDN::MutexLocker l(_imageLock);
|
||||
|
||||
_drawParameter = {
|
||||
.bounds = self.bounds,
|
||||
.bounds = self.threadSafeBounds,
|
||||
.opaque = self.opaque,
|
||||
.contentsScale = _contentsScaleForDisplay,
|
||||
.backgroundColor = self.backgroundColor,
|
||||
|
||||
@@ -441,7 +441,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
|
||||
_drawParameter = {
|
||||
.backgroundColor = self.backgroundColor,
|
||||
.bounds = self.bounds
|
||||
.bounds = self.threadSafeBounds
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user