A Way To Resize JMP window in exact pixel #731
ChowDPa02k
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For most modern video players (PotPlayer, VLC, etc.), they usually support automatic resizing of the window to match the video's dimensions.
This function is important for high-resolution screens, such as playing 1080p content on 2K/4K monitors.
Otherwise, the video playback will suffer from upscaling algorithms, making the picture blurred.
Unfortunately, JMP hasn't implemented this feature so far. It's quite cumbersome to drag a window with pixel-level accuracy. I've tried this before, and even with a 3x magnifier, I couldn't do it well.
Windows
On Windows, there is no native way to resize a window to precise dimensions. However, there's a tool for us: Sizer, which can handle this task well.
Sizer will hook the right-click action on the edge of a window (when your cursor turns into a resize icon). Just configure it for a 1080p windowed mode...
Note: Sizer calculates the entire window size, including borders and the title bar, so the default 1080p gives a content area that is actually smaller than 1920x1080.
Depending on the system's display scaling settings, the height of the title bar may vary.
So how do we ensure we get a perfect 1080p size? Just check the log:
And search for
resize event: QSize, you can find the actual size of the content area.Example
For a 2K monitor with 100% scaling, you should configure it to 1922x1112 (1920+2, 1080+32).
For other scaling factors, start with (+2, +32) until the log finally shows the actual
QSize(1920, 1080).Ubuntu
wmctrl -r "$(wmctrl -l | grep 'Jellyfin Media Player' | awk '{print $1}')" -e 0,0,0,1920,1080Beta Was this translation helpful? Give feedback.
All reactions