Skip to content

Fixes scaled sprite width / height#920

Open
zimmermannubique wants to merge 1 commit intomainfrom
bugfix/stretch-icon-scale-fix
Open

Fixes scaled sprite width / height#920
zimmermannubique wants to merge 1 commit intomainfrom
bugfix/stretch-icon-scale-fix

Conversation

@zimmermannubique
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

🖼️ Image Diff Test Failure

The image comparison tests failed. Rendered images don't match the expected golden images.

Investigate:

  1. 📎 Download image diff artifacts (look for test-image-diffs-651)
  2. Check *_diff.png (red = differences)
  3. Compare *_actual.png vs *_golden.png

To approve the changes:

  • Run this workflow manually and check “Update golden images (approve changes)”
  • Or locally:
    mvn -f jvm/pom.xml test -DupdateGolden=true

Last updated: Run #651

}

const auto scaledBaseSpriteWidth = spriteWidth * iconSize.value;
const auto scaledBaseSpriteHeight = spriteHeight * iconSize.value;
Copy link
Copy Markdown
Contributor

@matzf matzf Mar 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary additional variables, just multiply spriteWidth/Height with iconSize at initialization.
(That is, if the logic should actually work like implemented, this seems to break some test cases completely)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants