Scale canvas to devicePixelRatio for hi-dpi screens