Uploaded image for project: 'Minecraft Launcher'
  1. Minecraft Launcher
  2. MCL-10940

Launcher does not scale properly on Linux, affecting HiDPI displays

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 2.29.15 (Linux)
    • 2.1.3674-2.1.3677, 2.2.2528 (Linux), 2.2.2803 (Linux), 2.2.3123 (Linux), 2.2.3200 (Linux), 2.2.3554 (Linux), 2.2.3963 (Linux), 2.2.5516 (Linux), 2.2.7266 (Linux), 2.2.7448 (Linux), 2.2.7955 (Linux), 2.2.8354 (Linux), 2.2.8540 (Linux), 2.2.8906 (Linux), 2.2.10273 (Linux), 2.2.10321 (Linux), 2.2.10674 (Linux), 2.2.11106 (Linux), 2.2.11697 (Linux), 2.2.12148 (Linux), 2.3.136 (Linux), 2.3.173 (Linux), 2.3.200 (Linux), 2.3.228 (Linux), 2.3.240 (Linux), 2.3.324 (Linux), 2.3.394 (Linux), 2.3.407 (Linux), 2.3.462 (Linux), 2.3.522 (Linux), 2.3.549 (Linux), 2.3.562 (Linux), 2.3.580 (Linux), 2.3.585 (Linux), 2.3.592 (Linux), 2.3.619 (Linux), 2.3.645 (Linux), 2.4.30 (Linux), 2.4.36 (Linux), 2.4.39 (Linux), 2.4.69 (Linux), 2.4.79 (Linux), 2.4.104 (Linux), 2.5.9 (Linux), 2.6.10 (Linux), 2.6.14 (Linux), 2.6.16 (Linux), 2.7.12 (Linux), 2.8.2 (Linux), 2.10.22 (Linux), 2.10.24 (Linux), 2.10.25 (Linux), 2.11.15 (Linux), 2.11.24 (Linux), 2.12.2 (Linux), 2.13.7 (Linux), 2.14.12 (Linux), 2.15.19 (Linux), 2.15.23 (Linux), 2.16.12 (Linux), 2.17.13 (Linux), 2.18.2 (Linux), 2.19.10 (Linux), 2.21.26 (Linux), 2.22.14 (Linux), 2.23.7 (Linux), 2.24.17 (Linux), 2.25.4 (Linux), 2.26.2 (Linux), 2.27.11 (Linux), 2.28.11 (Linux)
    • Minecraft Launcher
    • OS: Mint 19.1 tessa
      Kernel: x86_64 Linux 4.15.0-50-generic
      Resolution: 3840x2160
      DE: Cinnamon 4.0.10 | Xorg
      CPU: Intel Core i5-6600K @ 4x 3.9GHz
      GPU: GeForce GTX 1060
      RAM: 15998MiB
    • Confirmed
    • 683473, 858283

      When using the Minecraft launcher on Linux, the launcher does not scale its content according to the system's display scaling factor. According to user reports, this affects multiple Linux distributions, desktop environments, and windowing systems.

      Impact

      Users with HiDPI displays have extreme difficulty viewing and navigating the Minecraft launcher. Since the launcher does not scale properly according to the display scaling factor, the size of content is very small. For example, text with a 12px font size would be 4px on a typical 4k 13.3" laptop with 300% scaling (equivalent size as 150% scaling on a 1080p 13.3" display).

      How to reproduce

      1. Set a display scaling factor on your Linux distribution that is not 100%. For example, on Linux distributions with the GNOME desktop environment, go to Settings > Displays > Scale and set it to 200%.
      2. Open the Minecraft Launcher.
        The scale of the launcher content does not match that of the system. On HiDPI displays, the text size is unreadable and the interface is difficult to navigate.

      Notes

      • If I remember correctly, this is an upstream issue with CEF. However, I can't seem to find a relevant issue report. This does appear to be an upstream issue. When using the latest beta build of the CEF sample application (94.2.2+g0c2cc26+chromium-94.0.4606.50), the scaling of the content is not correct on a HiDPI display.
      • In launcher versions prior to 2.2.2159, the content was scaled correctly. However, the resolution of the window was not changed, causing it to appear blurry. See MCL-16405.
      • Since launcher version 2.2.2159, the size and resolution of the window are set properly, but the content scale is not. Try running the launcher with GDK_SCALE=1, GDK_SCALE=2, and GDK_SCALE=3. Notice how the window size grows, but the content size does not.

        1. Captura de tela de 2021-07-02 19-20-24.png
          61 kB
          Rodrigo Messias Barros
        2. Captura de tela de 2021-07-02 19-20-33.png
          80 kB
          Rodrigo Messias Barros
        3. Captura de tela de 2021-07-02 19-23-28.png
          2.60 MB
          Rodrigo Messias Barros
        4. MCL-10940.png
          1.94 MB
          Bytzo
        5. minecraft-launcher-hidpi-fractional-scaling.png
          313 kB
          Jared González
        6. screenshot-1.png
          4.55 MB
          Alessandro Amella
        7. screenshot-2.png
          2.89 MB
          Alessandro Amella
        8. Screenshot from 2019-06-01 13-22-54.png
          46 kB
          Duble A
        9. Screenshot from 2019-06-27 19-59-12.png
          1.28 MB
          Duble A
        10. Screenshot from 2019-07-27 18-08-39.png
          6.41 MB
          Waylon Peng
        11. Screenshot from 2024-07-06 11-21-47 (Copy).png
          3.69 MB
          ArduFish123
        12. tiny-minecraft-1080p.png
          744 kB
          Nato Boram

            Unassigned Unassigned
            Bytzo Bytzo
            Votes:
            21 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: