From 27c88796b39da912e5a3054ed66124c661e929e0 Mon Sep 17 00:00:00 2001 From: lukas Date: Fri, 17 Jan 2025 03:54:59 +0100 Subject: [PATCH] fix canvas aspect ratio --- observe_bact.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/observe_bact.html b/observe_bact.html index 4f8d008..4bb9936 100644 --- a/observe_bact.html +++ b/observe_bact.html @@ -359,8 +359,8 @@ canvas.style.aspectRatio = video_aspect; canvas_draw.style.aspectRatio = video_aspect; - //canvas_draw.width = canvas_draw.width*5; - //canvas_draw.height = canvas_draw.height*5; + canvas_draw.height = canvas_draw.height*5; + canvas_draw.width = canvas_draw.height*video_aspect; streaming = true; }