Fix rounding errors

In this pull request, i changed roundf to ceilf for sizes, and used floorf or ceillf for positions depending if we are aligning

floorf: for top/left/under/ToTheright
ceilf: for the rest