mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-28 08:30:19 +09:00
fix: realtime animation dpi
This commit is contained in:
parent
98b463b94b
commit
684d1e249f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user