[Hacktoberfest] Improving Hi-DPI support on Windows as a Community

Bob Sneidar bobsneidar at iotecdigital.com
Wed Nov 7 10:54:49 EST 2018


Thanks for you work on this Trevor. I suspect stack positions when switching between monitors of dissimmilar resolution will benifit from this. 

Bob S


> On Nov 6, 2018, at 09:10 , Trevor DeVore via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> On Mon, Nov 5, 2018 at 11:15 PM Trevor DeVore <lists at mangomultimedia.com>
> wrote:
> 
>> On Thu, Oct 11, 2018 at 10:40 AM Trevor DeVore <lists at mangomultimedia.com>
>> wrote:
>> 
>>> I'm aware of the following limitations and bugs around Hi-DPI support on
>>> Windows:
>>> 
>>> 1. The `screenPixelScales` reports the pixelScale of the primary monitor
>>> for all attached monitors. For example, if you have a Windows 10 computer
>>> with two monitors attached and the primary monitor is set to displays at
>>> 100% (1.0 pixelScale) and a second monitor at 200% (2.0 pixelScale) then
>>> the `screenPixelScales` returns `1.0\n1.0` when it should return `1.0\n2.0`.
>>> 
>>> https://quality.livecode.com/show_bug.cgi?id=19542
>>> 
>> 
>> An update for anyone interested. Today I finished setting up a build
>> environment for LiveCode Community on Windows and I started doing some
>> testing. Fixing `the screenPixelScales` issue was actually really easy. It
>> was just a matter of adding some XML to the engine/standalone manifests.
>> You can see what I've changed so far at the following url. It compares a
>> branch I created to the LiveCode develop-9.0 branch:
>> 
>> 
>> https://github.com/livecode/livecode/compare/develop-9.0...trevordevore:tkd-dpiawareness?expand=1
>> 
>> The next item of business is to update `the screenPixelScale of stack
>> tStack`. It currently returns the wrong value on secondary displays. I'm
>> guessing it involves switching to GetDpiForWindow() in the code.
>> 
> 
> There isn't actually a `screenPixelScale` property for a stack so ignore
> the comment above.
> 
> I have done a fair bit of testing and further research. I've updated the
> bug report with my notes:
> 
> https://quality.livecode.com/show_bug.cgi?id=19542#c6
> 
> If anyone feels they can jump in and provide some additional coding or
> testing it would be great.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list