[gnome-shell] recorder: Call cairo_surface_mark_dirty on the cursor surface
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] recorder: Call cairo_surface_mark_dirty on the cursor surface
- Date: Mon, 24 Jan 2011 22:04:11 +0000 (UTC)
commit 361a115729d43edabeca691faccb99fe372f17f7
Author: Adel Gadllah <adel gadllah gmail com>
Date: Mon Jan 24 22:56:23 2011 +0100
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-recorder.c b/src/shell-recorder.c
index a1c626b..6f3a6ea 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]