only round coordinates for rects, not for everything, and not for sub two-pixel distances
Merge branch 'legend_bug'