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

Make #physicalSize on BlMorphicHostSpace apply the world renderer canvas scale factor #465

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

Rinzwind
Copy link
Contributor

@Rinzwind Rinzwind commented Mar 6, 2024

This pull request makes #physicalSize on BlMorphicHostSpace apply the world renderer canvas scale factor. For details see issue #450.

Note that this pull request depends on changes in Pharo 12, specifically the class FormSet introduced in Pharo pull request #14998 and the method #canvasScaleFactor for OSWorldRenderer introduced in Pharo pull request #15647.

@Rinzwind Rinzwind mentioned this pull request Mar 6, 2024
@tinchodias
Copy link
Collaborator

Either we create a new Pharo12 branch as we discussed few time ago, or we make some "SystemVersion current major < 12 ifTrue: [ ] ifFalse: [ ]."

…orphicHostSpace apply the world renderer canvas scale factor”) to Pharo 12 to maintain compatibility with earlier versions.
@Rinzwind
Copy link
Contributor Author

Rinzwind commented Mar 7, 2024

I did the necessary changes using SystemVersion in commit 0dd07ef, but I did not add that commit to this pull request yet in case you prefer to have a separate ‘Pharo12’ branch (like seems to be the idea for Roassal in Roassal issue #55 and for Toplo in Toplo issue #96).

@tinchodias
Copy link
Collaborator

Let's go with the ifs... Please, could you push the commit to the branch, to merge it into dev?

@Rinzwind
Copy link
Contributor Author

I added the commit to this pull request.

@tinchodias tinchodias merged commit 494f7cf into pharo-graphics:dev Mar 14, 2024
6 checks passed
aClippedCanvas drawImage: spaceForm at: self position ] ]
SystemVersion current major >= 12 ifTrue: [
| formSet |
formSet := (Smalltalk at: #FormSet) extent: self extent depth: spaceForm depth forms: { spaceForm }.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tesonep @Ducasse is there a better way to access a class instead of the Smalltalk global?

@Ducasse
Copy link
Contributor

Ducasse commented Mar 14, 2024

You can have self class environment or Smalltalk globals at:....

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