Fixes for 64 bit typecast warnings (#1733)
This commit is contained in:
parent
8719858655
commit
6c518008a5
18 changed files with 68 additions and 68 deletions
|
@ -177,7 +177,7 @@ int main(void)
|
|||
// Draw drawing circle for reference
|
||||
if (mousePos.y > 50)
|
||||
{
|
||||
if (IsMouseButtonDown(MOUSE_RIGHT_BUTTON)) DrawCircleLines(mousePos.x, mousePos.y, brushSize, GRAY);
|
||||
if (IsMouseButtonDown(MOUSE_RIGHT_BUTTON)) DrawCircleLines((int)mousePos.x, (int)mousePos.y, brushSize, GRAY);
|
||||
else DrawCircle(GetMouseX(), GetMouseY(), brushSize, colors[colorSelected]);
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,8 @@ int main(void)
|
|||
Texture2D explosion = LoadTexture("resources/explosion.png");
|
||||
|
||||
// Init variables for animation
|
||||
int frameWidth = explosion.width/NUM_FRAMES_PER_LINE; // Sprite one frame rectangle width
|
||||
int frameHeight = explosion.height/NUM_LINES; // Sprite one frame rectangle height
|
||||
float frameWidth = explosion.width/NUM_FRAMES_PER_LINE; // Sprite one frame rectangle width
|
||||
float frameHeight = explosion.height/NUM_LINES; // Sprite one frame rectangle height
|
||||
int currentFrame = 0;
|
||||
int currentLine = 0;
|
||||
|
||||
|
@ -89,8 +89,8 @@ int main(void)
|
|||
}
|
||||
}
|
||||
|
||||
frameRec.x = (float)frameWidth*currentFrame;
|
||||
frameRec.y = (float)frameHeight*currentLine;
|
||||
frameRec.x = frameWidth*currentFrame;
|
||||
frameRec.y = frameHeight*currentLine;
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue