From 361a115729d43edabeca691faccb99fe372f17f7 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Mon, 24 Jan 2011 22:56:23 +0100 Subject: [PATCH] recorder: Call cairo_surface_mark_dirty on the cursor surface Cairo surfaces have to be marked dirty after directly accessing them. This fixes the problem of the cursor not being in the recordings. --- src/shell-recorder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shell-recorder.c b/src/shell-recorder.c index a1c626b41..6f3a6ea37 100644 --- a/src/shell-recorder.c +++ b/src/shell-recorder.c @@ -412,6 +412,8 @@ recorder_fetch_cursor_image (ShellRecorder *recorder) for (i = 0; i < cursor_image->height; i++) for (j = 0; j < cursor_image->width; j++) *(guint32 *)(data + i * stride + 4 * j) = cursor_image->pixels[i * cursor_image->width + j]; + + cairo_surface_mark_dirty (recorder->cursor_image); } /* Overlay the cursor image on the frame. We draw the cursor image