Skip to content

Commit

Permalink
Fix #120
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Jul 7, 2014
1 parent 94e11f7 commit 96dd8fd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions picamera/camera.py
Expand Up @@ -370,9 +370,12 @@ def _init_camera(self):
# Get screen resolution
w = ct.c_uint32()
h = ct.c_uint32()
bcm_host.graphics_get_display_size(0, w, h)
w = int(w.value)
h = int(h.value)
if bcm_host.graphics_get_display_size(0, w, h) == -1:
w = 1280
h = 720
else:
w = int(w.value)
h = int(h.value)
cc = self._camera_config
cc.max_stills_w = w
cc.max_stills_h = h
Expand Down

0 comments on commit 96dd8fd

Please sign in to comment.