We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1f2a89 commit e9f06fbCopy full SHA for e9f06fb
1 file changed
src/camera.c
@@ -630,9 +630,9 @@ static void _camera_on_snapshot(gpointer data)
630
return;
631
if((pixbuf = gdk_pixbuf_new_from_data(camera->rgb_buffer,
632
GDK_COLORSPACE_RGB, FALSE, 8,
633
- camera->area_allocation.width,
634
- camera->area_allocation.height,
635
- camera->area_allocation.width * 3,
+ camera->format.fmt.pix.width,
+ camera->format.fmt.pix.height,
+ camera->format.fmt.pix.width * 3,
636
NULL, NULL)) == NULL)
637
{
638
_camera_error(camera, "Could not save picture", 1);
0 commit comments