diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-05 08:21:46 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-05 12:09:10 +0200 |
commit | 46887c48055fb9101ebedadf52c8f8b13b0e8918 (patch) | |
tree | c40f3a09fae27a17446a92f8bc0d9f1a7d1ff0aa | |
parent | 16357909f5b5818ad468f3ceb8bde406fd87fb38 (diff) | |
download | cv-46887c48055fb9101ebedadf52c8f8b13b0e8918.tar.gz cv-46887c48055fb9101ebedadf52c8f8b13b0e8918.tar.bz2 cv-46887c48055fb9101ebedadf52c8f8b13b0e8918.zip |
capture: Add code that could flip vertical
-rw-r--r-- | capture.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |