diff --git a/app/components/openai-voice-visualizer/openai-voice-visualizer.tsx b/app/components/openai-voice-visualizer/openai-voice-visualizer.tsx index 5c4f56caed3..5d1f1b3cc24 100644 --- a/app/components/openai-voice-visualizer/openai-voice-visualizer.tsx +++ b/app/components/openai-voice-visualizer/openai-voice-visualizer.tsx @@ -228,8 +228,9 @@ export function OpenAIVoiceVisualizer({ const initializeWebGL = useCallback(() => { if (!canvasRef.current) return; - canvasRef.current.width = CANVAS_SIZE; - canvasRef.current.height = CANVAS_SIZE; + const dpi = window.devicePixelRatio || 1; + canvasRef.current.width = CANVAS_SIZE * dpi; + canvasRef.current.height = CANVAS_SIZE * dpi; const { gl, program } = initWebGL( canvasRef.current,