When running Redshirt in Windowed mode, every time the main menu is loaded (either because you’ve just launched the program or you’ve quit out of a game in progress and back to the main menu) the window is resized to the primary monitor resolution (minus the height of the taskbar) and placed in the centre of the screen. When also using a multi-monitor setup, the “centre of the screen” is interpreted as the centre of the entire desktop area, so with two monitors of the same size, the window gets placed right in between them. Half on one monitor, half on the other.
- In Windowed mode, the resolution settings aren’t being saved. They’re reset to the maximum window size of the primary display every time the main menu loads.
- The window is being unnecessarily repositioned and resized when quitting back to the main menu from a running game, which shouldn’t happen.
- The automatic positioning of the window doesn’t correctly take into account that the desktop area isn’t the same as the primary monitor area on multi-monitor setups.
For 1, obviously it needs to save the resolution settings, but I think it should also save any changes you make by manually resizing or repositioning the window. If I use the window handles to resize it to 1452x998 and position it at (100,24), it should save that and restore it when the program is launched. This would also help fix problems 2 and 3.
For 3, it’s a bit tricky. If you save the user’s chosen window position, for the most part this problem won’t matter, it’ll just be a wonky thing that happens the first time you run the game in windowed mode. But if you want to minimise wonkiness, it might be better for the first-run case to assume the user wants the window centred on their primary monitor. That’s probably what most people are going to want. And, in full screen mode, you might want to consider putting a dropdown to allow users with multiple monitors to choose which monitor they want it to be full screen on.
Also, this isn’t really a problem so much as a feature request, but how about changing from using exclusive fullscreen mode to borderless fullscreen? There aren’t any benefits to using exclusive fullscreen mode, all it does is make alt-tabbing slightly more inconvenient, and sometimes mess with other running programs. Plus, you’ll get a nice green checkmark in your PC Gaming Wiki writeup.