mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 19:38:15 +00:00
removed glfwSetWindowPos on InitWindow (#2732)
* removed glfwSetWindowPos on InitWindow * removed execute permission from CMakeLists
This commit is contained in:
0
CMakeLists.txt
Executable file → Normal file
0
CMakeLists.txt
Executable file → Normal file
12
src/rcore.c
12
src/rcore.c
@@ -4107,18 +4107,6 @@ static bool InitGraphicsDevice(int width, int height)
|
||||
|
||||
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.height = CORE.Window.screen.height;
|
||||
}
|
||||
|
Reference in New Issue
Block a user