Skip to content

Commit

Permalink
CCScrollView Mac Undefined symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Sep 10, 2024
1 parent 04a64b7 commit 92e89ad
Show file tree
Hide file tree
Showing 2 changed files with 495 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ class ParticlePreview : public CCLayerColor {
setColor(cocos2d::ccBLACK);
setOpacity(cocos2d::ccWHITE.r);

#ifndef GEODE_IS_MAC
auto scroll = CCScrollView::create(this->getContentSize(), m_particleRef);
#else
auto scroll = CCLayer::create();
scroll->setContentSize(this->getContentSize());
scroll->addChild(m_particleRef);
#endif // !GEODE_IS_MAC

addChild(scroll);

m_particleRef->setContentSize(this->getContentSize());
Expand Down
Loading

0 comments on commit 92e89ad

Please sign in to comment.