about summary refs log tree commit diff stats
path: root/js/pico-cam/video.js
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-06-30 17:58:13 -0400
committerelioat <elioat@tilde.institute>2024-06-30 17:58:13 -0400
commitbcdc7c3b2b74cdce311d569c78fc2adee0a66b12 (patch)
tree40d3994522a1437e2cc7617e1542a12c648b3a34 /js/pico-cam/video.js
parent7a07d2799dc777de2816a16777c2f9953a284241 (diff)
downloadtour-bcdc7c3b2b74cdce311d569c78fc2adee0a66b12.tar.gz
*
Diffstat (limited to 'js/pico-cam/video.js')
-rw-r--r--js/pico-cam/video.js2
1 files changed, 2 insertions, 0 deletions
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) {