👓 Fixed histogram scaling on retina displays

This commit is contained in:
Rishi Ghan
2022-05-03 14:06:55 -07:00
parent c3d8a3db74
commit 349e74b123

View File

@@ -11,6 +11,7 @@ export const Canvas = (data) => {
useEffect(() => {
const context = canvas.current.getContext("2d");
context.scale(pixelRatio, pixelRatio);
const guideHeight = 8;
const startY = height - guideHeight;
const dx = width / 256;