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

Retina Support #28

Open
mbarwick83 opened this issue Mar 29, 2014 · 4 comments
Open

Retina Support #28

mbarwick83 opened this issue Mar 29, 2014 · 4 comments

Comments

@mbarwick83
Copy link

Any way to implement retina support? Canvas is blurry on retina displays, etc.

I've used this before, but can't seem to get it to work within your code:

// retina conversion
if(window.devicePixelRatio == 2) {
canvas.setAttribute('width', 800);
canvas.setAttribute('height', 160);
ctx.scale(2, 2);
}

@grexican
Copy link
Contributor

@mbarwick83 Check out my pull request. If you can't wait until it gets merged in, just see the small code snippet to copy & paste into the source. I took your code and modified it to fit in dynamically into the plugin source.

@websanova
Copy link
Owner

Just pushed an update on this request including a minified version tagged at 2.1.0, let me know if that works.

@sy-tang
Copy link

sy-tang commented Jun 25, 2014

@websanova It seems not working on some devices like samsung. Any one fix that?

@grexican
Copy link
Contributor

Sorry, no samsung device to test on here. I assume that it just isn't a high quality canvas? Or is there something else going on?

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

No branches or pull requests

4 participants