diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0111370..16b22a8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -42,7 +42,7 @@ - + @@ -494,7 +494,7 @@ - + diff --git a/lib/graphiclib.py b/lib/graphiclib.py index 36d4fc0..838550b 100644 --- a/lib/graphiclib.py +++ b/lib/graphiclib.py @@ -83,6 +83,6 @@ class PiCamera(pygame.sprite.Sprite): def update(self, *args): print('updating camera') with picamera.array.PiRGBArray(self.camera, size=self.size) as output: - self.camera.capture(output, 'rgb', resize=self.size) - s = pygame.surfarray.make_surface(output.array) + self.camera.capture(output, 'rgb') + s = pygame.transform.rotate(pygame.surfarray.make_surface(output.array), 90) self.image.blit(s, (0, 0)) \ No newline at end of file