shithub: choc

Download patch

ref: 243df30e086c28e5cbac69ecf717c9475e374219
parent: ffbc2b349296dd15b48743ce8d092f1cf66a3d99
author: Simon Howard <fraggle@soulsphere.org>
date: Sat Oct 20 08:25:04 EDT 2018

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.

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1175,6 +1175,15 @@
         }
     }
 
+    // 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