removed glfwSetWindowPos on InitWindow (#2732)

* removed glfwSetWindowPos on InitWindow

* removed execute permission from CMakeLists
This commit is contained in:
Random 2022-10-02 01:46:33 -07:00 committed by GitHub
parent 178a356cb4
commit 03f5fce672
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 26 deletions

0
CMakeLists.txt Executable file → Normal file
View file

View file

@ -4107,18 +4107,6 @@ static bool InitGraphicsDevice(int width, int height)
if (CORE.Window.handle) if (CORE.Window.handle)
{ {
#if defined(PLATFORM_DESKTOP)
// Center window on screen
int windowPosX, windowPosY;
glfwGetMonitorPos(monitor, &windowPosX, &windowPosY);
windowPosX += CORE.Window.display.width/2 - CORE.Window.screen.width/2;
windowPosY += CORE.Window.display.height/2 - CORE.Window.screen.height/2;
if (windowPosX < 0) windowPosX = 0;
if (windowPosY < 0) windowPosY = 0;
glfwSetWindowPos(CORE.Window.handle, windowPosX, windowPosY);
#endif
CORE.Window.render.width = CORE.Window.screen.width; CORE.Window.render.width = CORE.Window.screen.width;
CORE.Window.render.height = CORE.Window.screen.height; CORE.Window.render.height = CORE.Window.screen.height;
} }