Fix warnings in raylib build (#2084)

This commit is contained in:
Jeffery Myers 2021-10-25 01:18:42 -07:00 committed by GitHub
parent e5cdfab97d
commit 086f76ba7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -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
{