about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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) {