Browse Source

Platform: leave Sdl2Application window positioning on the system.

pull/132/head
Vladimír Vondruš 11 years ago
parent
commit
3bbb67c3f9
  1. 4
      src/Magnum/Platform/Sdl2Application.cpp
  2. 4
      src/Magnum/Platform/Sdl2Application.h

4
src/Magnum/Platform/Sdl2Application.cpp

@ -165,7 +165,7 @@ bool Sdl2Application::tryCreateContext(const Configuration& configuration) {
/* Create window */
if(!(_window = SDL_CreateWindow(configuration.title().data(),
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
configuration.size().x(), configuration.size().y(),
SDL_WINDOW_OPENGL|windowFlags)))
{
@ -211,7 +211,7 @@ bool Sdl2Application::tryCreateContext(const Configuration& configuration) {
SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, int(configuration.flags()));
if(!(_window = SDL_CreateWindow(configuration.title().data(),
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
configuration.size().x(), configuration.size().y(),
SDL_WINDOW_OPENGL|windowFlags)))
{

4
src/Magnum/Platform/Sdl2Application.h

@ -534,8 +534,8 @@ CORRADE_ENUMSET_OPERATORS(Sdl2Application::Flags)
/**
@brief Configuration
The created window is always centered with double-buffered OpenGL context and
24bit depth buffer.
The created window is always with double-buffered OpenGL context and 24bit
depth buffer.
@see @ref Sdl2Application(), @ref createContext(), @ref tryCreateContext()
*/
class Sdl2Application::Configuration {

Loading…
Cancel
Save