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: Unresolved
    • None
    • 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)
    • 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.

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

              Created:
              Updated:
              CHK: