mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-25 07:00:23 +09:00
fix: canvas dpi
This commit is contained in:
parent
684d1e249f
commit
23a855eb87
@ -231,6 +231,8 @@ export function OpenAIVoiceVisualizer({
|
||||
const dpi = window.devicePixelRatio || 1;
|
||||
canvasRef.current.width = CANVAS_SIZE * dpi;
|
||||
canvasRef.current.height = CANVAS_SIZE * dpi;
|
||||
canvasRef.current.style.width = `${CANVAS_SIZE}px`;
|
||||
canvasRef.current.style.height = `${CANVAS_SIZE}px`;
|
||||
|
||||
const { gl, program } = initWebGL(
|
||||
canvasRef.current,
|
||||
|
Loading…
Reference in New Issue
Block a user