commit 9bb9373ae7f784e6eb028fe42a24825409d315f0
Author: Robin <e.robin154@gmail.com>
AuthorDate: Sat Feb 18 16:48:46 2023 +0100
Commit: Turo Lamminen <turol@users.noreply.github.com>
CommitDate: Tue Feb 21 15:10:08 2023 +0200
Add display command line parameter
---
src/i_video.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/i_video.c b/src/i_video.c
index 8cf0e7a5..4e650ec6 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1030,6 +1030,24 @@ void I_GraphicsCheckCommandLine(void)
}
}
+ //!
+ // @category video
+ // @arg <x>
+ //
+ // Specify the display number on which to show the screen.
+ //
+
+ i = M_CheckParmWithArgs("-display", 1);
+
+ if (i > 0)
+ {
+ int display = atoi(myargv[i + 1]);
+ if (display >= 0)
+ {
+ video_display = display;
+ }
+ }
+
//!
// @category video
//