mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 22:06:06 +03:00
fix(glsdl): use SDL2 'centered' values for new window
This commit is contained in:
parent
d6611f7aab
commit
6fa58683ad
@ -198,8 +198,8 @@ void GLSDLWindow::Create(const char* title, const GLSDLWindowRect& rect, GLTextu
|
|||||||
|
|
||||||
this->m_sdlWindow = SDL_CreateWindow(
|
this->m_sdlWindow = SDL_CreateWindow(
|
||||||
title,
|
title,
|
||||||
0,
|
SDL_WINDOWPOS_CENTERED,
|
||||||
0,
|
SDL_WINDOWPOS_CENTERED,
|
||||||
static_cast<int>(rect.size.width), static_cast<int>(rect.size.height),
|
static_cast<int>(rect.size.width), static_cast<int>(rect.size.height),
|
||||||
SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE
|
SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user