From 724b8953b587548cab615aacfd3c78f518f67c8f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 25 May 2012 09:25:42 +0200 Subject: cvg: Use cvGetSize in capture --- cvg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvg.c b/cvg.c index f327ea6..82c1085 100644 --- a/cvg.c +++ b/cvg.c @@ -140,7 +140,7 @@ capture(gpointer userdata) if (cvg->input_surface) cairo_surface_destroy(cvg->input_surface); - cvg->image = cvCreateImage(cvSize(image->width, image->height), + cvg->image = cvCreateImage(cvGetSize(image), image->depth, image->nChannels); cvCopy(image, cvg->image, NULL); if (!cvg->image) -- cgit