[Hacktoberfest] Improving Hi-DPI support on Windows as a Community
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.
> 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>
>> On Thu, Oct 11, 2018 at 10:40 AM Trevor DeVore <lists at mangomultimedia.com>
>>> I'm aware of the following limitations and bugs around Hi-DPI support on
>>> 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`.
>> 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:
>> 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:
> If anyone feels they can jump in and provide some additional coding or
> testing it would be great.
> Trevor DeVore
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode