mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-19 17:39:50 -04:00
good one
This commit is contained in:
parent
5c8ee29cd3
commit
5b9393d0e7
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ void ScrollLayer::visit() {
|
|||
|
||||
if (this->getParent()) {
|
||||
CCPoint const offset = this->isIgnoreAnchorPointForPosition()
|
||||
? ccp(0, 0) : this->getContentSize() * -this->getAnchorPoint();
|
||||
? ccp(0, 0) : CCPoint(this->getContentSize() * -this->getAnchorPoint());
|
||||
|
||||
auto const bottomLeft = this->convertToWorldSpace(ccp(0, 0) - offset);
|
||||
auto const topRight = this->convertToWorldSpace(this->getContentSize() - offset);
|
||||
|
|
Loading…
Reference in a new issue