jMonkeyEngine / jMonkeyEngine/jmonkeyengine

JME doesn't deal with Windows display scaling.

Open
#1,172 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Needs investigation
Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

JME doesn't seem to take into account Windows display scaling.

I work on a windows 10 laptop with a separate monitor. The laptop's monitor size is 1920x1080 and Windows display scaling is set to 125%. The separate monitor's size is 2560x1440 and scaling is set to 150%. I set the separate monitor to be the main display.

If I run an app on the separate monitor with scaling 100%, then the app has the expected size in both windowed context and full screen context. But if I run the app on the separate monitor with scaling 150%, then in windowed context the app shows 1.5 times the size you'd expect. In full screen context you see only the top left part of the app.

  • top left corner: (0, 1439)
  • bottom left corner: (0, 480)
  • top right corner: (1707, 1439)
  • bottom right corner: (1707, 480)

The distance between left (0) and right (1707) make sense, since it's the monitor's width (2560px) divided by its scaling (150%). The difference between top (1439) and bottom (480) is the monitor's height (1440px) divided by 150%.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue. Start by reproducing the behavior on Windows 10 with separate monitors using 125% and 150% display scaling, comparing windowed and full-screen contexts. Done means the application has the expected size and visible area on the scaled monitor in both contexts.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.