You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
We currently use different number types for pixelRatio; in some places it's float, in some places it's uint8_t. I think we should drop support for float pixel ratios and just go with integers all over the place.
I think we should stick to floats as this is what Apple does on iOS and OS X. In practice, values are always 1.0 or 2.0, but they're floats for a reason. iOS 8 is moving to size classes for devices in preparation for more flexibility in display density. I think moving to integers might bite us later with a with a refactor.
Activity
incanus commentedon Jul 31, 2014
I think we should stick to floats as this is what Apple does on iOS and OS X. In practice, values are always
1.0or2.0, but they're floats for a reason. iOS 8 is moving to size classes for devices in preparation for more flexibility in display density. I think moving to integers might bite us later with a with a refactor.mourner commentedon Jul 31, 2014
Note that there are also some Android devices that have non-integer pixel ratio, e.g.
1.3or1.5: http://bjango.com/articles/min-device-pixel-ratio/kkaefer commentedon Jul 31, 2014
oh gawd no
jfirebaugh commentedon Aug 22, 2014
Fixed in #438.