integrate with mac, pixel ratio fix