pcal43 / splitscreen

Minecraft mod. Easy window positioning for local multiplayer
MIT License
3 stars 1 forks source link

Split-screen window size does not resize with resolution #13

Open tomdaly opened 3 months ago

tomdaly commented 3 months ago

hi,

first of all, thanks for developing this mod! it makes split-screen really easy to configure in Minecraft.

I'm having an issue where when I lower my resolution before starting Minecraft (I stream this display to a TV with a lower resolution), the Minecraft window doesn't resize

to reproduce:

expected behaviour:

actual behaviour:

the reproduce steps could be done with 1920x1080 and downscaling to 1280x720 to see the effect, if you don't have a 1440p monitor.

I have tried deleting the mod and splitscreen.json config file, then resizing before re-installing but it has the same effect. I think that the resolution is taken from the actual monitor size instead of the display resolution, which causes this bug.

as a suggestion, if it's not possible to get the correct screen size, could you add the dimensions to the config json file? this would mean that I could specify something like mode=TOP(1920x1080) and mode=BOTTOM(1920x1080) in the respective files so that it gets the right resolution without having to check the display


happy to help create a PR for this if you can point me in the right direction!

tomdaly commented 3 months ago

update: I managed to fix this temporarily outside of the mod by editing .minecraft/options.txt value fullscreenResolution:2560x1440@60:24 to fullscreenResolution:1920x1080@60:24