wScratchPad
wScratchPad copied to clipboard
Retina Support
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);
}
@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.
Just pushed an update on this request including a minified version tagged at 2.1.0, let me know if that works.
@websanova It seems not working on some devices like samsung. Any one fix that?
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?