Skip to content

Commit

Permalink
Removed some clang specific issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SMJSGaming committed Jun 19, 2024
1 parent 8f9f927 commit a765299
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scenes/InterceptPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void InterceptPopup::scene() {
} else {
instance = new InterceptPopup();

if (instance && instance->init(InterceptPopup::uiWidth, InterceptPopup::uiHeight)) {
if (instance && instance->initAnchored(InterceptPopup::uiWidth, InterceptPopup::uiHeight)) {
instance->setID("intercept_popup"_spr);
instance->retain();
} else {
Expand Down Expand Up @@ -88,7 +88,7 @@ void InterceptPopup::onClose(CCObject* obj) {

void InterceptPopup::setupList() {
const float xPosition = InterceptPopup::uiPadding + PADDING;
const CCSize listSize({ InterceptPopup::captureCellWidth, this->getPageHeight() });
const CCSize listSize(ccp(InterceptPopup::captureCellWidth, this->getPageHeight()));
BorderFix* captures = BorderFix::create(m_captureList = CaptureList::create(listSize - 2, InterceptPopup::captureCellHeight, [this](HttpInfo* request) {
this->updateInfo(request);
}), LIGHTER_BROWN_4B, listSize, { 1, 1 });
Expand All @@ -100,7 +100,7 @@ void InterceptPopup::setupList() {

void InterceptPopup::setupSettings() {
CCNode* info = m_mainLayer->getChildByID("info"_spr);
CCSize padding({ PADDING, PADDING });
CCSize padding(ccp(PADDING, PADDING));
const float xPosition = info->getPositionX() + info->getContentWidth() + PADDING;
const float width = CCDirector::sharedDirector()->getWinSize().width - xPosition - InterceptPopup::uiPadding - PADDING;
CCScale9Sprite* settingsBg = CCScale9Sprite::create("square02b_001.png");
Expand Down Expand Up @@ -166,7 +166,7 @@ void InterceptPopup::setupCodeBlock() {
label->setScale(0.8f);
label->setAnchorPoint(CENTER);
label->setColor(ThemeStyle::getTheme().line);
label->setPosition(CCSize({ InterceptPopup::codeBlockButtonWidth / buttonCount, InterceptPopup::codeBlockButtonHeight }) / 2);
label->setPosition(ccp(InterceptPopup::codeBlockButtonWidth / buttonCount, InterceptPopup::codeBlockButtonHeight) / 2);
button->setSizeMult(0);
buttons.push_back(button);

Expand Down

0 comments on commit a765299

Please sign in to comment.