mojira.dev
MC-27261

Larger-than-possible windowed resolution causes clipped display

Display configuration: Mac, single display, 1440 × 900, dock visible on bottom. Steps to reproduce:

  1. In the launcher profile settings, specify a resolution vertically larger than the maximum window size that fits on the screen.

  2. Launch Minecraft.

  3. Observe that the window fits on the screen, but the content (both GUI and 3D viewport) is sized according to the launcher settings and therefore cut off at the top.

This is useless and otherwise impossible behavior — the resolution setting is otherwise equivalent to resizing the window, but resizing the window will not create this clipped-at-the-top behavior. I think it would make sense for Minecraft to, after setting its window size, check what window size has been actually achieved and adjust its notion of resolution to fit that.

My goal is (rather, was at the time I reported this bug) to have Minecraft in a maximum-size window. It is not trivial to work around this problem simply by specifying the “correct” size, because on macOS the maximum vertical window size varies depending on the scale of the Dock, which (for a full Dock) varies depending on the number of items in it.

I note incidentally that any one of the following changes would solve my particular problem, but I believe that what I have described above is most relevant thing to report because it is the most bug-like rather than additional-feature-like.

  1. Fix this bug: adjust rendering to match the actual window size.

  2. Add a launcher option to maximize the window on launch, rather than taking a specific numeric size.

  3. Have the game's fullscreen option use modern macOS fullscreen mode (as can be done using the green window button but has to be clicked every time you start the game) rather than the old style one which also interferes with switching to other applications.

Linked issues

Attachments

Comments 12

Please attach the screenshot you took.

OK. I specifically set the resolution to 200 pixels too high and took these two screenshots; one using the Minecraft screenshot function, and one of the window using the OS screenshot function.

Note, by the way, that the crosshair and the view projection are not centered; that is, the camera is positioned for the full specified height rather than what's actually visible. In the GUI this can mean buttons are inaccessible off-screen.

(By the way, I just thought of another way this can be a real problem — if someone who uses a laptop + big monitor and has set the resolution for that, but then launches Minecraft without the external monitor available.)

2. Add a launcher option to maximize the window on launch, rather than taking a specific numeric size

Why don't you switch ingame to Fullscreen ? That setting is stored and used at next start

@Kumasa: Because as I noted in point 3, I can't switch applications while in fullscreen mode.

(I also didn't know it was saved since I hardly ever use it. If the fullscreen state is saved, why not save window size as well? That would mean I wouldn't care about this problem. But that's not a bug per se.)

Attached some screenshots showing what I see

2 more comments

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

The screenshots produced are now complete instead of having black bars, but the in-game display is still cut off at the top.

Note that my previous remark that an alternative to getting this right would be “Fix fullscreen so that Cmd-Tab application switching works” is even more relevant today: Mac OS X (er i mean macOS) now has an even better fullscreen system, which actually can be used with Minecraft by clicking the green title bar button, but this is not remembered when the game is quit like the built-in fullscreen option. Ideally the two would be the same — both switch-allowing and remembered across restarts.

Thank you for your feedback, @unknown. As the reporter of this bug, you can update the description and affected version(s) yourself, so please try updating this ticket from time to time.

Can someone please check if this is still an issue in the latest snapshot 17w49b?

(I no longer play Minecraft much at all these days so someone else will have to check.)

Kevin Reid

(Unassigned)

Confirmed

resolution

Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 13w48a, ..., Minecraft 1.7.3, Minecraft 1.7.4, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.11.2

Retrieved