cdglabs / Shadershop

The Unlicense
910 stars 64 forks source link

Add support for HiDPI displays #3

Closed bbrks closed 9 years ago

bbrks commented 9 years ago

By scaling the canvas width/height by window.devicePixelRatio (or 1 for a fallback) we can enable HiDPI support.

Optionally, we can also scale the line width on line 13 in ShaderOverlayView.coffee, but IMO it isn't needed.

Before & After example:

Shadershop before and after HiDPI support