Explorar o código

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

micha hai 1 ano
pai
achega
23af660899
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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)))