Hacker News new | ask | show | jobs
by deckar01 2704 days ago
The browser has a global for the DPR. If you multiply the reported dimensions by this value and keep the canvas stretched to 100% it should look crisp on any screen.

https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...