浏览代码

change: video Vopen position to center-bottom /cpan/ctilt

micha 1 年之前
父节点
当前提交
23af660899
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      vpu/vpu_live.py

+ 3 - 1
vpu/vpu_live.py

@@ -661,7 +661,9 @@ class Vopen():
         if self.success and wn and self.im: # is not None:
             xx ,yy = self.im.get_size()[:2]
             if self.fname.startswith("cam_"):
-                wn.blit(self.im, (int(self.x-xx/2), int(self.y)))
+                #wn.blit(self.im, (int(self.x-xx/2), int(self.y))) # corner center-top
+                #wn.blit(self.im, (int(self.x-xx/2), int(self.y-yy))) # corner center-bottom
+                wn.blit(self.im, (int(self.x-xx/2), int(self.y-yy))) # corner center-bottom
             else:
                 wn.blit(self.im, (int(self.x-xx/2), int(self.y-yy/2)))