瀏覽代碼

mac-capture: Get cursor visible setting on create

When display capture is created, the hide_cursor variable is not
initialized, so just initialize it to the setting in the create
function.
jp9000 10 年之前
父節點
當前提交
35a4acede0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      plugins/mac-capture/mac-display-capture.m

+ 1 - 0
plugins/mac-capture/mac-display-capture.m

@@ -261,6 +261,7 @@ static void *display_capture_create(obs_data_t *settings,
 	struct display_capture *dc = bzalloc(sizeof(struct display_capture));
 
 	dc->source = source;
+	dc->hide_cursor = !obs_data_get_bool(settings, "show_cursor");
 
 	dc->effect = obs_get_default_rect_effect();
 	if (!dc->effect)