- lc.drawImage(video, sx, sy, sw, sh, 0, 0, lv.width, dh);
- rc.drawImage(video, sx, h/2 + sy, sw, sh, 0, 0, rv.width, dh);
- if (sx < 0) {
- lc.drawImage(video, sx + w, sy, sw, sh, 0, 0, lv.width, dh);
- rc.drawImage(video, sx + w, h/2 + sy, sw, sh, 0, 0, rv.width, dh);
- } else if ( sx + fov * hdeg > w) {
- lc.drawImage(video, sx - w, sy, sw, sh, 0, 0, lv.width, dh);
- rc.drawImage(video, sx - w, h/2 + sy, sw, sh, 0, 0, rv.width, dh);
- }
+ lc.drawImage(video, sx + dist, sy, sw, sh, 0, 0, lv.width, dh);
+ rc.drawImage(video, sx - dist, h/2 + sy, sw, sh, 0, 0, rv.width, dh);
+ if (sx + dist < 0) { lc.drawImage(video, sx + w + dist, sy, sw, sh, 0, 0, lv.width, dh); }
+ if (sx - dist < 0) { rc.drawImage(video, sx + w - dist, h/2 + sy, sw, sh, 0, 0, rv.width, dh); }
+ if (sx + dist + fov * hdeg > w) { lc.drawImage(video, sx - w + dist, sy, sw, sh, 0, 0, lv.width, dh); }
+ if (sx - dist + fov * hdeg > w) { rc.drawImage(video, sx - w - dist, h/2 + sy, sw, sh, 0, 0, rv.width, dh); }