fix default dimensions for drawMatrices function

merge-requests/289/head
Moe Alam 2021-02-05 08:24:00 -08:00
parent 684afc7821
commit 8518c2c2ef
1 changed files with 2 additions and 2 deletions

View File

@ -336,8 +336,8 @@ $.ccio.init=function(x,d,user,k){
case'drawMatrices':
d.height=d.stream.height()
d.width=d.stream.width()
if(!d.details.imgWidth && d.monitorDetails.detector_scale_x===''){d.monitorDetails.detector_scale_x=320}
if(!d.details.imgHeight && d.monitorDetails.detector_scale_y===''){d.monitorDetails.detector_scale_y=240}
if(!d.details.imgWidth && d.monitorDetails.detector_scale_x===''){d.monitorDetails.detector_scale_x=640}
if(!d.details.imgHeight && d.monitorDetails.detector_scale_y===''){d.monitorDetails.detector_scale_y=480}
d.widthRatio=d.width/d.details.imgWidth || d.monitorDetails.detector_scale_x
d.heightRatio=d.height/d.details.imgHeight || d.monitorDetails.detector_scale_y