summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2021-10-25 01:18:42 -0700
committerGitHub <[email protected]>2021-10-25 10:18:42 +0200
commit086f76ba7abefb1b34e1baa353c5f69dfc5dafdc (patch)
tree51254c9d4e55ec5a7879d21ed85cce5dd0347cad /src/rcore.c
parente5cdfab97dbdfa54f741cdf79a6b98880ae17cdb (diff)
downloadraylib-086f76ba7abefb1b34e1baa353c5f69dfc5dafdc.tar.gz
raylib-086f76ba7abefb1b34e1baa353c5f69dfc5dafdc.zip
Fix warnings in raylib build (#2084)
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 2bdc454d..8550db24 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -2188,7 +2188,7 @@ void BeginScissorMode(int x, int y, int width, int height)
{
Vector2 scale = GetWindowScaleDPI();
- rlScissor(x*scale.x, CORE.Window.currentFbo.height - (y + height)*scale.y, width*scale.x, height*scale.y);
+ rlScissor((int)(x*scale.x), (int)(CORE.Window.currentFbo.height - (y + height)*scale.y), (int)(width*scale.x), (int)(height*scale.y));
}
else
{
@@ -5020,8 +5020,8 @@ static void WindowSizeCallback(GLFWwindow *window, int width, int height)
{
Vector2 windowScaleDPI = GetWindowScaleDPI();
- CORE.Window.screen.width = width/windowScaleDPI.x;
- CORE.Window.screen.height = height/windowScaleDPI.y;
+ CORE.Window.screen.width = (unsigned int)(width/windowScaleDPI.x);
+ CORE.Window.screen.height = (unsigned int)(height/windowScaleDPI.y);
}
else
{