fixed quartz line drawing code for arm64 platforms