Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodesk: testUsdView shots must be UI scale independent #3517

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

erikaharrison-adsk
Copy link
Contributor

Description of Change(s)

  • Compensate for the device scaling ratio when setting the original window size of the tests.
  • Use the original window size in StageView so we avoid problems with integer rounding in the scaling round trip (widgetSize is round(round(originalSize / scale) * scale) so it's not necessarily the same).
  • Round up the widget window size so we can truncate it to the original window size when taking a screenshot.

Link to proposal (if applicable)

  • N/A

Fixes Issue(s)

  • N/A

Checklist

@DDoS DDoS force-pushed the adsk/feature/test-usdview-scaling branch from 2bb01aa to ced1d80 Compare February 4, 2025 15:31
@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10644

(This is an automated message. See here for more information.)

@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@DDoS DDoS force-pushed the adsk/feature/test-usdview-scaling branch from ced1d80 to 5d98571 Compare February 14, 2025 15:19
@jesschimein
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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