Skip to content

Commit

Permalink
forgot one last thing
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Dec 9, 2024
1 parent fa26ba7 commit 551a3a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EndLevelLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class $modify(MyEndLevelLayer, EndLevelLayer) {
const float contentHeight = newSprite->getContentHeight();
if (contentHeight < 36.5f) newSprite->setScale(36.5f / contentHeight);
else if (contentHeight > 50.f) newSprite->setScaleY(50.f / contentHeight);
const float contentWidth = newSprite->getContentWidth();
const float contentWidth = newSprite->getContentWidth() * newSprite->getScaleX();
if (contentWidth > 400.f) newSprite->setScaleX(400.f / contentWidth);
}
} else if (manager->chosenMode == "Oxygene One" && !manager->sharedReplacementLabel.empty()) {
Expand Down
2 changes: 1 addition & 1 deletion src/PlayLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class $modify(MyPlayLayer, PlayLayer) {
const float contentHeight = newSprite->getContentHeight();
if (contentHeight < 36.5f) newSprite->setScale(36.5f / contentHeight);
else if (contentHeight > 150.f) newSprite->setScaleY(150.f / contentHeight);
const float contentWidth = newSprite->getContentWidth();
const float contentWidth = newSprite->getContentWidth() * newSprite->getScaleX();
if (contentWidth > 400.f) newSprite->setScaleX(400.f / contentWidth);
}
lctReplaced = true;
Expand Down

0 comments on commit 551a3a5

Please sign in to comment.