Skip to content

Commit e9f06fb

Browse files
committed
Fixed taking pictures
1 parent d1f2a89 commit e9f06fb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/camera.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,9 @@ static void _camera_on_snapshot(gpointer data)
630630
return;
631631
if((pixbuf = gdk_pixbuf_new_from_data(camera->rgb_buffer,
632632
GDK_COLORSPACE_RGB, FALSE, 8,
633-
camera->area_allocation.width,
634-
camera->area_allocation.height,
635-
camera->area_allocation.width * 3,
633+
camera->format.fmt.pix.width,
634+
camera->format.fmt.pix.height,
635+
camera->format.fmt.pix.width * 3,
636636
NULL, NULL)) == NULL)
637637
{
638638
_camera_error(camera, "Could not save picture", 1);

0 commit comments

Comments
 (0)