mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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.
This commit is contained in:
parent
d107b84be4
commit
361a115729
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue