Ricardo
Member
Hi there!
I have two monitors. Monitor #1 is ultrawide (2560x1080), whereas monitor #2 is a regular 1920x1080.
If I try to maximize my game on monitor #1, everything works as expected. However, if I move the game window to monitor #2 and maximize it (window_set_fullscreen(true)), the game doesn't maximize right, it gets stretched (doesn't use the full monitor size, it gets black borders in the sides and the mouse position is offset) .
Using the debugger, I noticed that display_get_width() and display_get_height() were returning monitor #1's resolution (2560x1080), even if the game was running on monitor #2. Hmm, weird.
I then changed monitor #1 resolution to 1920x1080 (so both monitors were using the same size), and then fullscreen started working correctly on monitor #2.
So it seems like that have a multi-monitor setup in which the monitors have different resolutions causes issues in GMS2 games, at least when you try to maximize the game in a secondary display. Does anyone know a workaround or something I could try to get rid of this behavior?
Note: Other non-GMS2 games maximize right on monitor #2, so this is not a Windows/driver issue.
I have two monitors. Monitor #1 is ultrawide (2560x1080), whereas monitor #2 is a regular 1920x1080.
If I try to maximize my game on monitor #1, everything works as expected. However, if I move the game window to monitor #2 and maximize it (window_set_fullscreen(true)), the game doesn't maximize right, it gets stretched (doesn't use the full monitor size, it gets black borders in the sides and the mouse position is offset) .
Using the debugger, I noticed that display_get_width() and display_get_height() were returning monitor #1's resolution (2560x1080), even if the game was running on monitor #2. Hmm, weird.
I then changed monitor #1 resolution to 1920x1080 (so both monitors were using the same size), and then fullscreen started working correctly on monitor #2.
So it seems like that have a multi-monitor setup in which the monitors have different resolutions causes issues in GMS2 games, at least when you try to maximize the game in a secondary display. Does anyone know a workaround or something I could try to get rid of this behavior?
Note: Other non-GMS2 games maximize right on monitor #2, so this is not a Windows/driver issue.