add support for borderless windows

moveref
Sebastian Wick 10 years ago
parent 73382b8aa4
commit ec18a2cfa0

@ -6,6 +6,7 @@ resolution x = 800
resolution y = 600 resolution y = 600
fullscreen = false fullscreen = false
borderless = true
screen = 0 screen = 0
# Minimize the window if it loses key focus? # 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_x, // width, in pixels
settings.window_y, // height, in pixels settings.window_y, // height, in pixels
SDL_WINDOW_SHOWN 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); SFO::SDLWindowHelper helper(mSDLWindow, settings.window_x, settings.window_y, title, settings.fullscreen, params);

@ -37,6 +37,7 @@ namespace OEngine
{ {
bool vsync; bool vsync;
bool fullscreen; bool fullscreen;
bool borderless;
int window_x, window_y; int window_x, window_y;
int screen; int screen;
std::string fsaa; std::string fsaa;

Loading…
Cancel
Save