[Examples] Warning fixes (pt 1) (#1668)
* Fix some warnings in examples. * cleanups from review Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
This commit is contained in:
parent
c6dd41495b
commit
e48b9a6da1
30 changed files with 104 additions and 103 deletions
|
@ -58,8 +58,8 @@ int main(void)
|
|||
position = GetMousePosition();
|
||||
active = true;
|
||||
|
||||
position.x -= frameWidth/2;
|
||||
position.y -= frameHeight/2;
|
||||
position.x -= frameWidth/2.0f;
|
||||
position.y -= frameHeight/2.0f;
|
||||
|
||||
PlaySound(fxBoom);
|
||||
}
|
||||
|
@ -89,8 +89,8 @@ int main(void)
|
|||
}
|
||||
}
|
||||
|
||||
frameRec.x = frameWidth*currentFrame;
|
||||
frameRec.y = frameHeight*currentLine;
|
||||
frameRec.x = (float)frameWidth*currentFrame;
|
||||
frameRec.y = (float)frameHeight*currentLine;
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue