[Vm-dev] [commit][3665] Squeak is actually not DPI aware (yet?).

Tobias Pape Das.Linux at gmx.de
Thu Mar 31 07:01:52 UTC 2016


Hi Eliot,

On 31.03.2016, at 06:53, Eliot Miranda <eliot.miranda at gmail.com> wrote:

> 
> Hi Tobias,
> 
>    card to say more about this?  I had explicit requests to add this with the given settings and have heard of no complaints yet.  But you disable it below.  Are you sure you're doing the right thing?

The effect of <dpiAware>true</dpiAware> is that Windows expects the application to
handle the actual dpi of the screen the application is currently on.

On typical displays, there's no change, but hi-dpi displays (like a MS Surface, or Retina Macs)
have a higher DPI and Windows in this case does not do anything special.
In effect, the picture is just tiny, fonts near unreadable.

While some people (also people I know) prefer this tinyness, it is actually startling for
new users and "the average" user. 

If <dpiAware>false</dpiAware> is set, Windows handles the screen DPI and upscales
the backing store so that everything looks similarly big on screens of different DPI.
This is (imho) the expected behavior.

People preferring the hidpi variant easily can set the dpiAware entry (thats, eg, what
Marcel does for his projects sometimes). The other way round, expecting average/new
users to _disable_ that is probably a bad idea.

Hence the change.

Once we have 
	- VMs actually reacting to Screen-DPI-changes and
	- Emitting DPI-changed-Events to the Image and
	- The image actually does something useful with this event
I'll happily change that back. But that time has not come yet.

Best regards
	-Tobias


PS: I also want DPI-awareness for the Mac VM, btw.


> 
> _,,,^..^,,,_ (phone)
> 
>> On Mar 30, 2016, at 12:32 AM, commits at squeakvm.org wrote:
>> 
>> 
>> Revision: 3665
>> Author:   topa
>> Date:     2016-03-30 00:32:09 -0700 (Wed, 30 Mar 2016)
>> Log Message:
>> -----------
>> Squeak is actually not DPI aware (yet?).
>> 
>> Modified Paths:
>> --------------
>>   branches/Cog/build.win32x86/newspeak.cog.spur/nsvm.exe.manifest
>>   branches/Cog/build.win32x86/newspeak.stack.spur/nsvm.exe.manifest
>>   branches/Cog/build.win32x86/squeak.cog.spur/Croquet.exe.manifest
>>   branches/Cog/build.win32x86/squeak.cog.spur/Squeak.exe.manifest
>>   branches/Cog/build.win32x86/squeak.cog.v3/Croquet.exe.manifest
>>   branches/Cog/build.win32x86/squeak.cog.v3/Squeak.exe.manifest
>>   branches/Cog/build.win32x86/squeak.stack.spur/Croquet.exe.manifest
>>   branches/Cog/build.win32x86/squeak.stack.spur/Squeak.exe.manifest
>>   branches/Cog/build.win32x86/squeak.stack.v3/Croquet.exe.manifest
>>   branches/Cog/build.win32x86/squeak.stack.v3/Squeak.exe.manifest
>> 
>> Modified: branches/Cog/build.win32x86/newspeak.cog.spur/nsvm.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/newspeak.cog.spur/nsvm.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/newspeak.cog.spur/nsvm.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Newspeak Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/newspeak.stack.spur/nsvm.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/newspeak.stack.spur/nsvm.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/newspeak.stack.spur/nsvm.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Newspeak Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/squeak.cog.spur/Croquet.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/squeak.cog.spur/Croquet.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/squeak.cog.spur/Croquet.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Croquet Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/squeak.cog.spur/Squeak.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/squeak.cog.spur/Squeak.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/squeak.cog.spur/Squeak.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Squeak Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/squeak.cog.v3/Croquet.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/squeak.cog.v3/Croquet.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/squeak.cog.v3/Croquet.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Croquet Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/squeak.cog.v3/Squeak.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/squeak.cog.v3/Squeak.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/squeak.cog.v3/Squeak.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Squeak Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/squeak.stack.spur/Croquet.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/squeak.stack.spur/Croquet.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/squeak.stack.spur/Croquet.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Croquet Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/squeak.stack.spur/Squeak.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/squeak.stack.spur/Squeak.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/squeak.stack.spur/Squeak.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Squeak Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/squeak.stack.v3/Croquet.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/squeak.stack.v3/Croquet.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/squeak.stack.v3/Croquet.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Croquet Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 
>> Modified: branches/Cog/build.win32x86/squeak.stack.v3/Squeak.exe.manifest
>> ===================================================================
>> --- branches/Cog/build.win32x86/squeak.stack.v3/Squeak.exe.manifest    2016-03-29 20:18:32 UTC (rev 3664)
>> +++ branches/Cog/build.win32x86/squeak.stack.v3/Squeak.exe.manifest    2016-03-30 07:32:09 UTC (rev 3665)
>> @@ -12,7 +12,7 @@
>> <description>Squeak Smalltalk Virtual Machine</description>
>> <asmv3:application>
>>   <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
>> -        <dpiAware>true</dpiAware>
>> +        <dpiAware>false</dpiAware>
>>   </asmv3:windowsSettings>
>> </asmv3:application>
>> <dependency>
>> 



More information about the Vm-dev mailing list