Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
When I use the PlatformInfo.DevicePixelRatio to return the DPR value of a screen it works flawlessly in preview and in a NW.JS export. If the screen is set to scale to 125% it returns 1.25, 150% 1.5 etc. This works all the way up to 200%, where for some reason it displays correctly when previewing the project (2) however, using a NW.JS export it returns a value of 1.25.
Any ideas, possible bug?
Develop games in your browser. Powerful, performant & highly capable.
Follow up. It's an issue with multiple screens. When the NWJS executable is launched inside 'Display 2' at 200% DPI scaling, for some reason it is reading the DPI value of 'Display 1'. This only happens at 200% scaling.