diff options
| author | Jeffery Myers <[email protected]> | 2023-08-02 10:12:38 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-02 19:12:38 +0200 |
| commit | 04678bc585b51bf218310387b048e846ca4a7718 (patch) | |
| tree | eb7e3654064903b7262f185b6f80e12ee28ec8cd /src | |
| parent | b60c69181663a5e7f2cb0ec04c5e7c388cdcad3e (diff) | |
| download | raylib-04678bc585b51bf218310387b048e846ca4a7718.tar.gz raylib-04678bc585b51bf218310387b048e846ca4a7718.zip | |
int math done with floats causes warnings. (#3218)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c index 282fec17..fc87e735 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1693,8 +1693,8 @@ 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); } } |
