fix syntax

This commit is contained in:
2026-02-17 09:15:15 -06:00
parent f310c18b84
commit 4e1b63fd0e
52 changed files with 2169 additions and 1754 deletions

View File

@@ -1,6 +1,6 @@
// Test webcam display
var draw2d
var graphics
var draw2d = null
var graphics = null
var os = use('os');
var input = use('input')
var json = use('json')
@@ -88,7 +88,8 @@ send(video_actor, {
// Look for a 640x480 format with preferred colorspace
var preferred_format = null;
for (var i = 0; i < length(formats); i++) {
var i = 0;
for (i = 0; i < length(formats); i++) {
if (formats[i].width == 640 && formats[i].height == 480) {
preferred_format = formats[i];
// Prefer JPEG or sRGB colorspace if available