summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cvg.c2
1 files changed, 1 insertions, 1 deletions
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)