aboutsummaryrefslogtreecommitdiff
path: root/raylib/rcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'raylib/rcore.c')
-rw-r--r--raylib/rcore.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/raylib/rcore.c b/raylib/rcore.c
index d6e8128..d263869 100644
--- a/raylib/rcore.c
+++ b/raylib/rcore.c
@@ -1780,8 +1780,6 @@ void SetWindowMonitor(int monitor)
if ((screenWidth >= monitorWorkareaWidth) || (screenHeight >= monitorWorkareaHeight)) glfwSetWindowPos(CORE.Window.handle, monitorWorkareaX, monitorWorkareaY);
else
{
- const int x = monitorWorkareaX + (monitorWorkareaWidth*0.5f) - (screenWidth*0.5f);
- const int y = monitorWorkareaY + (monitorWorkareaHeight*0.5f) - (screenHeight*0.5f);
const int x = monitorWorkareaX + (monitorWorkareaWidth/2) - (screenWidth/2);
const int y = monitorWorkareaY + (monitorWorkareaHeight/2) - (screenHeight/2);
glfwSetWindowPos(CORE.Window.handle, x, y);