mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(glsdl): use SDL2 'centered' values for new window
This commit is contained in:
parent
d6611f7aab
commit
6fa58683ad
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue