mojira.dev
MCPE-108411

window.devicePixelRatio does not work with Scripting API

I'm trying to change my UI's scale based on DPI, but I'm having issues with window.devicePixelRatio only returning 1. I have tested it on a device with 150% scaling, and browsers currently return 1.5. The docs for hummingbird [say it is supported|https://coherent-labs.com/Documentation/cpp-hb/d6/d3d/interface_window.html#ab2f643b801465eac2e8ba0a5eaaa3bbf].
 

Comments 2

Is this still an issue in the latest version (1.17.10)? If so, can you please add it to the affected versions (or mention it if you are not the reporter).
This ticket will automatically reopen when you reply.

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Jack Buehner

(Unassigned)

Unconfirmed

Windows

Windows 10 Enterprise Build 19041.572

1.16.100

Retrieved