Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Added Retina Display support #31

Merged
merged 1 commit into from
Apr 14, 2014
Merged

Conversation

grexican
Copy link
Contributor

Addresses #28 directly in the plugin. Tested on an iPhone and saw much better results in both cover image and scratch resolution.

websanova added a commit that referenced this pull request Apr 14, 2014
Added Retina Display support
@websanova websanova merged commit a8625c7 into websanova:master Apr 14, 2014
@websanova
Copy link
Owner

Thanks, I just update this a little bit to use the window.devicePixelRatio || 1 as the ratio factor that way it will work on any ratio that may exist include a zoom in/out by the user. I've tagged a v2.1.0 you can download.

@grexican
Copy link
Contributor Author

Cool thanks!

@grexican
Copy link
Contributor Author

Just checked it out. Makes perfect sense for future ratios and enhancements. The only thing I wasn't sure of is should pixels also be multiplied by that factor? As my comment said, I was unable to test because of all the context errors, and the one solution (setting the img origin) didn't work. I was unable to test the % complete to clear example as a result.

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

Successfully merging this pull request may close these issues.

2 participants