[squeak-dev] highdpi testing

Beckmann, Tom Tom.Beckmann at student.hpi.uni-potsdam.de
Sat Sep 19 14:03:58 UTC 2020


Hi,

turns out, we try drawing things while we load things :)

In the attached, updated changeset I moved the #displayScaled definitions first so that we can happily resume drawing. Also, I removed the usage of the deprecated #anyOpenWindowLikeMe, which caused my image to freeze.

Best,
Tom
________________________________________
From: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> on behalf of Tobias Pape <Das.Linux at gmx.de>
Sent: Saturday, September 19, 2020 3:54:06 PM
To: The general-purpose Squeak developers list
Subject: Re: [squeak-dev] highdpi testing

> On 19.09.2020, at 15:28, Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
>
> Hi Tobias,
>
> this sounds very promising, but unfortunately, I cannot try it out yet. I checked out your branch and built the VM for Win32, but while loading your changeset, my image gets damaged because it does not understand #displayScaled.

That is part of the Change set.
Which class misses that?

Also, one might have to reset all the UI themes.

-t

> I used a fresh #19860 image. Am I missing any dependency? :-)
>
> Best,
> Christoph
> Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Craig Latta <craig at blackpagedigital.com>
> Gesendet: Donnerstag, 17. September 2020 19:34:49
> An: squeak-dev at lists.squeakfoundation.org
> Betreff: Re: [squeak-dev] highdpi testing
>
>
>      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




-------------- next part --------------
A non-text attachment was scrubbed...
Name: DpiAware.1.cs
Type: text/x-csharp
Size: 15513 bytes
Desc: DpiAware.1.cs
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200919/23fa91d4/attachment.bin>


More information about the Squeak-dev mailing list