Unify float literals to use f suffix and avoid double promotions
I might have missed some.
This commit is contained in:
parent
d1ee507ec4
commit
384249c31a
19 changed files with 71 additions and 71 deletions
src
|
@ -642,7 +642,7 @@ struct WindowPrivate
|
|||
|
||||
if (active && cursorVert.vert)
|
||||
{
|
||||
float alpha = cursorAniAlpha[cursorAniAlphaIdx] / 255.0;
|
||||
float alpha = cursorAniAlpha[cursorAniAlphaIdx] / 255.0f;
|
||||
|
||||
cursorVert.setAlpha(alpha);
|
||||
|
||||
|
@ -651,7 +651,7 @@ struct WindowPrivate
|
|||
|
||||
if (pause && pauseAniVert.vert)
|
||||
{
|
||||
float alpha = pauseAniAlpha[pauseAniAlphaIdx] / 255.0;
|
||||
float alpha = pauseAniAlpha[pauseAniAlphaIdx] / 255.0f;
|
||||
FloatRect frameRect = pauseAniSrc[pauseAniQuad[pauseAniQuadIdx]];
|
||||
|
||||
pauseAniVert.setAlpha(alpha);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue