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.
This commit is contained in:
Simon Howard 2018-10-20 12:25:04 -04:00
parent ffbc2b3492
commit 243df30e08

View file

@ -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