Skip to content

Commit

Permalink
picamera: fix for python2. Closes #5698
Browse files Browse the repository at this point in the history
  • Loading branch information
tito committed Apr 16, 2018
1 parent 94d623f commit 53c2b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kivy/core/camera/camera_picamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _update(self, dt):

# Trim the buffer to fit the actual requested resolution.
# TODO: Is there a simpler way to do all this reshuffling?
output = output.reshape((*bufsize, 3))
output = output.reshape((bufsize[0], bufsize[1], 3))
output = output[:self.resolution[0], :self.resolution[1], :]
self._buffer = output.reshape((self.resolution[0] * self.resolution[1] * 3,))

Expand Down

1 comment on commit 53c2b4d

@thopiekar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.