mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-08 15:39:55 +03:00
fix(glsdl): use SDL2 'centered' values for new window
This commit is contained in:
1 parent
d6611f7aab
commit
6fa58683ad
1 file changed
+2
-2
@@ -198,8 +198,8 @@ void GLSDLWindow::Create(const char* title, const GLSDLWindowRect& rect, GLTextu
|
||||
|
||||
this->m_sdlWindow = SDL_CreateWindow(
|
||||
title,
|
||||
0,
|
||||
0,
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
static_cast<int>(rect.size.width), static_cast<int>(rect.size.height),
|
||||
SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user