[squeak-dev] highdpi testing

Craig Latta craig at blackpagedigital.com
Thu Sep 17 17:34:49 UTC 2020


     Hooray! Thanks, Tobias!


-C

***

     On 17/9/20 08:20, Tobias Pape wrote:

> 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

--
Craig Latta :: research computer scientist
Black Page Digital :: Berkeley, California
663137D7940BF5C0AFC  1349FB2ADA32C4D5314CE




More information about the Squeak-dev mailing list