diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 30de114..3488ddd 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -41,8 +41,8 @@ - - + + @@ -493,8 +493,8 @@ - - + + diff --git a/lib/graphiclib.py b/lib/graphiclib.py index 3840758..897b957 100644 --- a/lib/graphiclib.py +++ b/lib/graphiclib.py @@ -73,7 +73,7 @@ class PiCamera(pygame.sprite.Sprite): pygame.sprite.Sprite.__init__(self) pygame.camera.init() camera = picamera.PiCamera() - self.camsize = (self.size[0], int(self.size[0]/2)) + self.camsize = (size[0], int(size[0]/2)) camera.resolution = self.camsize self.camera = camera self.output = picamera.array.PiRGBArray(camera, size=self.camsize)