Commit 361a1157 authored by Adel Gadllah's avatar Adel Gadllah
Browse files

recorder: Call cairo_surface_mark_dirty on the cursor surface

Cairo surfaces have to be marked dirty after directly accessing

This fixes the problem of the cursor not being in the recordings.
parent d107b84b
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment