How do I run NW.JS without the elevated PPP windows display?

Get help using Construct 2

Post » Fri Jan 19, 2018 10:35 am

I have 1080p screen, so to make all stuff bigger i use a windows7 features that makes all 125% ppp(DPI scaling). With this the icons,letters,etc.. is much better readable.

There is an option on the .exe aplications, in the compatibility tab to turn off that but now works, construct2 or NW.JS

So, looking for a solution i saw you can do this in CSS

Code: Select all
@media only screen and( -webkit-min-device-pixel-ratio: 1.25 ),
       only screen and(      -o-min-device-pixel-ratio: 5/4 ),
       only screen and( min-resolution: 120dpi ),
       only screen and( min-resolution: 1.25dppx ) {
    body {
        font-size: 1rem;
    }
}


Or

Code: Select all
    @media screen and (min-resolution: 120dpi) {
    /*body {transform: scale(0.8);width: 125%;height: 125%;margin-left: -12.5%;}*/
    body {transform: scale(0.8);transform-origin:top left;width: 125%;height: 125%;}
}


Source: https://stackoverflow.com/questions/230 ... 3#24958483

Tried to use the "CSS Import" with a .css file with that and run NW.JS, but no luck, the ratio and other stuff changed, so seems can be changed but no idea of what i'm doing, really.

Is there any way to run NW.JS apps with the PPP feature disabled to avoid blur apps with this option enabled?
Last edited by matriax on Fri Jan 19, 2018 11:16 am, edited 1 time in total.
B
29
S
11
G
3
Posts: 655
Reputation: 4,925

Post » Fri Jan 19, 2018 10:54 am

In a Html5, if i put that code in the css style, the page displays changes from 100% to 80 to correct the W7 DPI scaled and works.

So, the idea is try to do the same with a NW.JS app, or try another settings or approach i don't know, already lost 2 days with this and no idea how to fix it :S

The unique way is using Letterbox integer scale, that shows the canvas correctly and images at correct size, but with black bars around it due the 25%
B
29
S
11
G
3
Posts: 655
Reputation: 4,925


Return to How do I....?

Who is online

Users browsing this forum: cristixxx and 61 guests