-
Notifications
You must be signed in to change notification settings - Fork 40
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
Make #physicalSize on BlMorphicHostSpace apply the world renderer canvas scale factor #465
Conversation
…vas scale factor.
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.
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). |
Let's go with the ifs... Please, could you push the commit to the branch, to merge it into dev? |
I added the commit to this pull request. |
aClippedCanvas drawImage: spaceForm at: self position ] ] | ||
SystemVersion current major >= 12 ifTrue: [ | ||
| formSet | | ||
formSet := (Smalltalk at: #FormSet) extent: self extent depth: spaceForm depth forms: { spaceForm }. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can have self class environment or Smalltalk globals at:.... |
…ze on BlMorphicHostSpace apply the world renderer canvas scale factor”) to Pharo 12.
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.