bvschaik / julius

An open source re-implementation of Caesar III
GNU Affero General Public License v3.0
2.79k stars 311 forks source link

CLI option to choose which monitor to display on #717

Closed dotnetCarpenter closed 6 months ago

dotnetCarpenter commented 7 months ago

Having multiple monitors, it would be nice to have a CLI option to choose which monitor to display the game on.

I imagine something like:

./julius --monitor 2

Where the number after --monitor, is the OS monitor identity number.

PS. The identity number could also be zero-based as it seems to currently be:

INFO: User to windowed 1024 x 768 on display 0 INFO: User to fullscreen 1920 x 1200 on display 1

dotnetCarpenter commented 7 months ago

After experiencing #716 I feel this option would go well, hand in hand with a --fullscreen option. Instead of starting a game to set the full screen mode on the correct monitor. I could simply do ./julius --monitor 2 --fullscreen when I have connected my secondary monitor.

bvschaik commented 6 months ago

Has been fixed by PR #722.