Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UIScreen.nativeScale instead of scale where available (iOS 8+) #79

Merged
merged 1 commit into from Apr 1, 2019

Conversation

guillerodriguez
Copy link
Contributor

Starting with iOS 8.0, UIScreen.nativeScale should be used to convert
from points to physical device pixels. In many cases, the "native scale"
and "scale" values match, but there are some exceptions:

  • Devices that perform hardware downsampling (iPhone 6+/6s+/7+/8+)
  • Devices supporting zoomed display mode (all iPhone 6/7/8 variants),
    when display mode is enabled.

This fixes #78.

Starting with iOS 8.0, UIScreen.nativeScale should be used to convert
from points to physical device pixels. In many cases, the "native scale"
and "scale" values match, but there are some exceptions:
 - Devices that perform hardware downsampling (iPhone 6+/6s+/7+/8+)
 - Devices supporting zoomed display mode (all iPhone 6/7/8 variants),
   when display mode is enabled.

This fixes playn#78.
@samskivert samskivert merged commit 5f2eca1 into playn:master Apr 1, 2019
@samskivert
Copy link
Contributor

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants