summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-25 09:25:42 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-25 09:25:42 +0200
commit724b8953b587548cab615aacfd3c78f518f67c8f (patch)
tree4c7ae4194b72abeb66c6fb4c396e5991dc46c6e7
parent51965c99362ea1d37fddc513dba6345fb1b8ea94 (diff)
downloadcv-724b8953b587548cab615aacfd3c78f518f67c8f.tar.gz
cv-724b8953b587548cab615aacfd3c78f518f67c8f.tar.bz2
cv-724b8953b587548cab615aacfd3c78f518f67c8f.zip
cvg: Use cvGetSize in capture
-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)