[squeak-dev] Accessing display scaling in Windows OSes

Tobias Pape Das.Linux at gmx.de
Thu Oct 8 08:14:37 UTC 2020


Hi


> On 08.10.2020, at 09:57, Stéphane Rollandin <lecteur at zogotounga.net> wrote:
> 
> Hello,
> 
> Is there a way for the Squeak image to detect the scaling factor applied to screen display by Windows?
> 
> For example, my daughter's small laptop on Windows 10 has a default 150% scaling applied to all applications. Squeak does not behave too well in that regard, it looks real fuzzy.
> 
> Also, 'Display extent' when in full-screen returns the actual OS screen resolution, ignoring the display factor. This means that my Saucers game for example thinks it has more real estate than what is really available, and thus does not compose itself correctly.

There's an experimental vm branch:
	https://github.com/OpenSmalltalk/opensmalltalk-vm/tree/krono/highdpi-v2
and some changesets that do this:
	http://forum.world.st/highdpi-testing-tp5122069p5122307.html

There's no pre-built vm at the moment, so if you need a VM please ask and someone can send you one :)

Note that this is all a bit untested, feel free to experiment around.

Best regards
	-Tobias


More information about the Squeak-dev mailing list