Fixed taking pictures

This commit is contained in:
Pierre Pronchery 2012-12-22 04:27:55 +01:00
parent d1f2a890c3
commit e9f06fb249

View File

@ -630,9 +630,9 @@ static void _camera_on_snapshot(gpointer data)
return;
if((pixbuf = gdk_pixbuf_new_from_data(camera->rgb_buffer,
GDK_COLORSPACE_RGB, FALSE, 8,
camera->area_allocation.width,
camera->area_allocation.height,
camera->area_allocation.width * 3,
camera->format.fmt.pix.width,
camera->format.fmt.pix.height,
camera->format.fmt.pix.width * 3,
NULL, NULL)) == NULL)
{
_camera_error(camera, "Could not save picture", 1);