commit 243df30e086c28e5cbac69ecf717c9475e374219
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sat Oct 20 12:25:04 2018 -0400
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Sat Oct 20 12:25:04 2018 -0400
video: Add -borderless command line parameter.
When playing in three window mode it's potentially helpful to have a
borderless mode so that the user can line up three windows next to
each other on a single desktop. However, without the windows borders
it's difficult/impossible to move windows around, so I'm not sure yet
how useful this actually is. It probably depends on the OS.
Thanks to joshthenesnerd for the suggestion.
---
src/i_video.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/i_video.c b/src/i_video.c
index f7021158..f94b454f 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1175,6 +1175,15 @@ static void SetVideoMode(void)
}
}
+ // Running without window decorations is potentially useful if you're
+ // playing in three window mode and want to line up three game windows
+ // next to each other on a single desktop.
+ // Deliberately not documented because I'm not sure how useful this is yet.
+ if (M_ParmExists("-borderless"))
+ {
+ window_flags |= SDL_WINDOW_BORDERLESS;
+ }
+
I_GetWindowPosition(&x, &y, w, h);
// Create window and renderer contexts. We set the window title