|
|
|
|
@ -241,7 +241,7 @@ bool Sdl2Application::tryCreate(const Configuration& configuration) {
|
|
|
|
|
#endif |
|
|
|
|
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, |
|
|
|
|
scaledWindowSize.x(), scaledWindowSize.y(), |
|
|
|
|
Uint32(configuration.windowFlags()&~Configuration::WindowFlag::Contextless)))) |
|
|
|
|
SDL_WINDOW_ALLOW_HIGHDPI|Uint32(configuration.windowFlags() & ~Configuration::WindowFlag::Contextless)))) |
|
|
|
|
{ |
|
|
|
|
Error() << "Platform::Sdl2Application::tryCreate(): cannot create window:" << SDL_GetError(); |
|
|
|
|
return false; |
|
|
|
|
@ -365,7 +365,7 @@ bool Sdl2Application::tryCreate(const Configuration& configuration, const GLConf
|
|
|
|
|
#endif |
|
|
|
|
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, |
|
|
|
|
scaledWindowSize.x(), scaledWindowSize.y(), |
|
|
|
|
SDL_WINDOW_OPENGL|SDL_WINDOW_HIDDEN|Uint32(configuration.windowFlags())))) |
|
|
|
|
SDL_WINDOW_OPENGL|SDL_WINDOW_HIDDEN|SDL_WINDOW_ALLOW_HIGHDPI|Uint32(configuration.windowFlags())))) |
|
|
|
|
{ |
|
|
|
|
Error() << "Platform::Sdl2Application::tryCreate(): cannot create window:" << SDL_GetError(); |
|
|
|
|
return false; |
|
|
|
|
@ -418,7 +418,7 @@ bool Sdl2Application::tryCreate(const Configuration& configuration, const GLConf
|
|
|
|
|
if(!(_window = SDL_CreateWindow(configuration.title().data(), |
|
|
|
|
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, |
|
|
|
|
scaledWindowSize.x(), scaledWindowSize.y(), |
|
|
|
|
SDL_WINDOW_OPENGL|SDL_WINDOW_HIDDEN|Uint32(configuration.windowFlags()&~Configuration::WindowFlag::Contextless)))) |
|
|
|
|
SDL_WINDOW_OPENGL|SDL_WINDOW_HIDDEN|SDL_WINDOW_ALLOW_HIGHDPI|Uint32(configuration.windowFlags()&~Configuration::WindowFlag::Contextless)))) |
|
|
|
|
{ |
|
|
|
|
Error() << "Platform::Sdl2Application::tryCreate(): cannot create window:" << SDL_GetError(); |
|
|
|
|
return false; |
|
|
|
|
|