Round to nearest pixels

This fixes too narrow boxes due to flooring computations.

r? @pcwalton