mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
add support for borderless windows
This commit is contained in:
parent
73382b8aa4
commit
ec18a2cfa0
3 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,7 @@ resolution x = 800
|
|||
resolution y = 600
|
||||
|
||||
fullscreen = false
|
||||
borderless = true
|
||||
screen = 0
|
||||
|
||||
# Minimize the window if it loses key focus?
|
||||
|
|
|
@ -128,7 +128,9 @@ void OgreRenderer::createWindow(const std::string &title, const WindowSettings&
|
|||
settings.window_x, // width, in pixels
|
||||
settings.window_y, // height, in pixels
|
||||
SDL_WINDOW_SHOWN
|
||||
| (settings.fullscreen ? SDL_WINDOW_FULLSCREEN : 0) | SDL_WINDOW_RESIZABLE
|
||||
| SDL_WINDOW_RESIZABLE
|
||||
| (settings.fullscreen ? SDL_WINDOW_FULLSCREEN : 0)
|
||||
| (settings.borderless ? SDL_WINDOW_BORDERLESS : 0)
|
||||
);
|
||||
|
||||
SFO::SDLWindowHelper helper(mSDLWindow, settings.window_x, settings.window_y, title, settings.fullscreen, params);
|
||||
|
|
|
@ -37,6 +37,7 @@ namespace OEngine
|
|||
{
|
||||
bool vsync;
|
||||
bool fullscreen;
|
||||
bool borderless;
|
||||
int window_x, window_y;
|
||||
int screen;
|
||||
std::string fsaa;
|
||||
|
|
Loading…
Reference in a new issue