[squeak-dev] highdpi testing
Tobias Pape
Das.Linux at gmx.de
Thu Sep 17 15:20:36 UTC 2020
Hi all
I have fiddled with the highdpi stuff and managed Linux/Unix to join the party.
If you're interested, have a look at
https://github.com/OpenSmalltalk/opensmalltalk-vm/tree/krono/highdpi-v2
The main thing that changes is that primitiveScreenScaleFactor now can dynamically determine what
scale to use for a monitor. Per se, that does nothing, but the DpiAware -Changeset below allows
Morphic and graphics to react to that.
This should work on
- OSX (CoreGraphics, OpenGL, Metal)
- Windows
- Linux (X11, fbdev)
I think this might be especially interesting for Tony and Christoph, among others.
Things to Note:
- Windows needs a manifest. This can be tricky. See
https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/krono/highdpi-v2/scripts/ci/travis_build.sh#L21
https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/Cog...krono/highdpi-v2#diff-f0c6c15289ff7521735d7e74a350903dL15
- Mac needs a customized Info.plist
https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/Cog...krono/highdpi-v2#diff-9bc015b0fdf6b3aa927c5e49b2d882b9R129
- Linux can be a mess.
There are now a few Environment variables to help out:
https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/a2690b1b4e5c4488c716613f6654a74e31fa018a/platforms/unix/vm/sqUnixDisplayHelpers.h
Multimonitor people might want to set
SQUEAK_DISPLAY_PER_MONITOR_SCALE=1
Tony on the Phone might want to set
SQUEAK_DISPLAY_PREFER_PHYSICAL_SCALE=1
Have fun and play around :)
Best regards
-Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DpiAware.1.cs
Type: application/octet-stream
Size: 15502 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200917/ab22816d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DisplayScreen class-actualScreenScaleFactor.st
Type: application/octet-stream
Size: 242 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200917/ab22816d/attachment-0001.obj>
More information about the Squeak-dev
mailing list
|