👓 Fixed histogram scaling on retina displays
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user