From 3bbb67c3f9887369d28e153c6c2909b2d5ec3e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 6 Dec 2015 16:32:47 +0100 Subject: [PATCH] Platform: leave Sdl2Application window positioning on the system. --- src/Magnum/Platform/Sdl2Application.cpp | 4 ++-- src/Magnum/Platform/Sdl2Application.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp index 1e7412964..98c9fcc9e 100644 --- a/src/Magnum/Platform/Sdl2Application.cpp +++ b/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))) { diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index ffa7e9094..23965f6ca 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/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 {