bugfix in calculateDrawPositions - forgot a cast from int to float