summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-04-05 08:21:46 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-04-05 12:09:10 +0200
commit46887c48055fb9101ebedadf52c8f8b13b0e8918 (patch)
treec40f3a09fae27a17446a92f8bc0d9f1a7d1ff0aa
parent16357909f5b5818ad468f3ceb8bde406fd87fb38 (diff)
downloadcv-46887c48055fb9101ebedadf52c8f8b13b0e8918.tar.gz
cv-46887c48055fb9101ebedadf52c8f8b13b0e8918.tar.bz2
cv-46887c48055fb9101ebedadf52c8f8b13b0e8918.zip
capture: Add code that could flip vertical
-rw-r--r--capture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capture.c b/capture.c
index dc0e643..6f5ecd0 100644
--- a/capture.c
+++ b/capture.c
@@ -132,6 +132,10 @@ draw_cb(GtkWidget *widget, cairo_t *cr, gpointer userdata)
sy /= cairo_image_surface_get_height(ct->surface);
cairo_scale(cr, sx, sy);
#endif
+#if 0
+ cairo_translate(cr, cairo_image_surface_get_width(ct->surface), 0.0);
+ cairo_scale(cr, -1.0, 1.0);
+#endif
cairo_set_source_surface(cr, ct->surface, 0, 0);
cairo_paint(cr);
cairo_restore(cr);