Some lines were being drawn at non-integral positions. The x and y coordinates are now floored before use.