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.