From ed68a34560b704ecfae90682eee8085ad8df2783 Mon Sep 17 00:00:00 2001 From: mlfarrell Date: Fri, 1 Sep 2023 17:29:03 -0700 Subject: [PATCH] disable high dpi video streaming (#374) --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 7d9cdc29f..a132d73f8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -253,9 +253,9 @@ export function App() { const streamWidth = streamRef?.current?.offsetWidth const streamHeight = streamRef?.current?.offsetHeight - const width = streamWidth ? streamWidth * pixelDensity : 0 + const width = streamWidth ? streamWidth : 0 const quadWidth = Math.round(width / 4) * 4 - const height = streamHeight ? streamHeight * pixelDensity : 0 + const height = streamHeight ? streamHeight : 0 const quadHeight = Math.round(height / 4) * 4 useLayoutEffect(() => {