Search Issue Tracker
Fixed in 4.5.5
Votes
0
Found in
4.5.4f1
Issue ID
634153
Regression
No
Screen.dpi has incorrect value on Windows Phone 8.1
Steps to reproduce:
1. Download attached project
2. Build and run it as WP8 application. Take a note of reported Screen.dpi
3. Rebuild and run it as WP8.1 application. Reported Screen.dpi will be different.
Devices used:
Nokia Lumia 520:
WP8 - 234.4615 dpi
WP8.1 - 115.2 dpi
Nokia Lumia 1520:
WP8 - 365.76 dpi
WP8.1 - 211.2
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
bblizzard
Sep 23, 2014 10:24
If Unity is using DisplayInformation::LogicalDpi to obtain the DPI value, I think that this may be wrong. I've stumbled upon DisplayInformation::RawPixelsPerViewPixel (only available on WP, not on normal WinRT) and this might be the right one to use. Or RawDpiX and RawDpiY in Microsoft::Phone::Info::DeviceExtendedProperties.