removed glfwSetWindowPos on InitWindow (#2732)
* removed glfwSetWindowPos on InitWindow * removed execute permission from CMakeLists
This commit is contained in:
parent
178a356cb4
commit
03f5fce672
2 changed files with 14 additions and 26 deletions
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue