wScratchPad icon indicating copy to clipboard operation
wScratchPad copied to clipboard

Retina Support

Open wutmikee opened this issue 11 years ago • 4 comments

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); }

wutmikee avatar Mar 29 '14 04:03 wutmikee

@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.

grexican avatar Apr 14 '14 20:04 grexican

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

websanova avatar Apr 14 '14 20:04 websanova

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

sy-tang avatar Jun 25 '14 10:06 sy-tang

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?

grexican avatar Jun 26 '14 18:06 grexican