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

0 favourites
  • 2 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • 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

    @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;
        }
    } [/code:1e0ggpa7]
    
    Or
    
    [code:1e0ggpa7]    @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%;}
    }[/code:1e0ggpa7]
    
    Source: [url=https://stackoverflow.com/questions/23099849/stop-firefox-dpi-scaling-when-windows-setting-is-at-125/24958483#24958483]https://stackoverflow.com/questions/230 ... 3#24958483[/url]
    
    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?
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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%

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)