Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-108411

window.devicePixelRatio does not work with Scripting API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.16.100
    • None
    • Unconfirmed
    • Windows

      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.
       

            jackbuehner Jack Buehner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: