diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-03-11 19:01:46 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-03-11 19:01:46 +0100 |
commit | ba096a3ba7815eff41159eedfb646c97451fbef7 (patch) | |
tree | 01bea3fea22cec135000e4aa1eaeea16406b56d5 /src/capture/kms.c | |
parent | 1292892d4dd9c94fccdead7afd58e38c85234bb9 (diff) |
Add -cursor option to not record cursor
Diffstat (limited to 'src/capture/kms.c')
-rw-r--r-- | src/capture/kms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c index 0b75b1f..16b20b7 100644 --- a/src/capture/kms.c +++ b/src/capture/kms.c @@ -193,7 +193,7 @@ static vec2i swap_vec2i(vec2i value) { return value; } -bool gsr_capture_kms_capture(gsr_capture_kms *self, AVFrame *frame, bool hdr, bool screen_plane_use_modifiers, bool cursor_texture_is_external) { +bool gsr_capture_kms_capture(gsr_capture_kms *self, AVFrame *frame, bool hdr, bool screen_plane_use_modifiers, bool cursor_texture_is_external, bool record_cursor) { //egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f); self->base.egl->glClear(0); @@ -300,7 +300,7 @@ bool gsr_capture_kms_capture(gsr_capture_kms *self, AVFrame *frame, bool hdr, bo capture_pos, self->capture_size, texture_rotation, false); - if(cursor_drm_fd) { + if(record_cursor && cursor_drm_fd) { const vec2i cursor_size = {cursor_drm_fd->width, cursor_drm_fd->height}; vec2i cursor_pos = {cursor_drm_fd->x, cursor_drm_fd->y}; switch(self->monitor_rotation) { |