I really don't understand why you're casting floats to ints for a function that takes floats. If you want to change them to whole numbers you should just cast them seperately to remove the ambiguity or use some kind of round function instead of shearing the last bits off by casting. Rounding would actually be better if you're trying to move them closer to a logical position.

Often warnings are there for a reason and I'm not sure why people are so apt to disable them when the extra code to disable them could just as easily -fix- the warning.

I really don't understand why you're casting floats to ints for a function that takes floats. If you want to change them to whole numbers you should just cast them seperately to remove the ambiguity or use some kind of round function instead of shearing the last bits off by casting. Rounding would actually be better if you're trying to move them closer to a logical position.

Often warnings are there for a reason and I'm not sure why people are so apt to disable them when the extra code to disable them could just as easily -fix- the warning.

Reason behind this is:
In the function, if posX and posY are not round numbers the text may appear blurry. Therefore i cast them to int before passing into function to remove occasion of blurry text.