Helper: round view coordinates to nearest whole pixel