|
|
|
@ -266,11 +266,15 @@ void OgreRenderer::createWindow(const std::string &title, const WindowSettings&
|
|
|
|
|
params.insert(std::make_pair("FSAA", settings.fsaa));
|
|
|
|
|
params.insert(std::make_pair("vsync", settings.vsync ? "true" : "false"));
|
|
|
|
|
|
|
|
|
|
SDL_Rect display_bounds;
|
|
|
|
|
if(SDL_GetDisplayBounds(settings.screen, &display_bounds) != 0)
|
|
|
|
|
throw std::runtime_error("Couldn't get display bounds!");
|
|
|
|
|
|
|
|
|
|
// Create an application window with the following settings:
|
|
|
|
|
mSDLWindow = SDL_CreateWindow(
|
|
|
|
|
"OpenMW", // window title
|
|
|
|
|
SDL_WINDOWPOS_UNDEFINED, // initial x position
|
|
|
|
|
SDL_WINDOWPOS_UNDEFINED, // initial y position
|
|
|
|
|
display_bounds.x, // initial x position
|
|
|
|
|
display_bounds.y, // initial y position
|
|
|
|
|
settings.window_x, // width, in pixels
|
|
|
|
|
settings.window_y, // height, in pixels
|
|
|
|
|
SDL_WINDOW_SHOWN
|
|
|
|
|