From bcdc7c3b2b74cdce311d569c78fc2adee0a66b12 Mon Sep 17 00:00:00 2001 From: elioat Date: Sun, 30 Jun 2024 17:58:13 -0400 Subject: * --- js/pico-cam/video.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/pico-cam/video.js b/js/pico-cam/video.js index b28038f..f51179e 100644 --- a/js/pico-cam/video.js +++ b/js/pico-cam/video.js @@ -8,6 +8,8 @@ let stream = null; let isCameraOn = false; const lowResWidth = 160; // Gameboy camera resolution: 160×144 const lowResHeight = 144; +video.style.width = lowResWidth + 'px'; +video.style.height = lowResHeight + 'px'; toggleCameraButton.addEventListener('click', async () => { if (!isCameraOn) { -- cgit 1.4.1-2-gfad0