diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-22 03:19:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-22 03:19:07 +0200 |
commit | 8109cc6beee540cf9c2e4aaa5241563b4e143e2d (patch) | |
tree | 9aad9c261fd6ad5f6c92f2444bc3b3f2cb1c906c /src | |
parent | f2a7c8a1fc559f77e4680a7beb857aaba6ac8c1d (diff) |
Remove all monitors capture option on amd/intel
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/main.cpp b/src/main.cpp index f78330e..e5d721d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2072,14 +2072,9 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a } const bool allow_screen_capture = wayland || nvfbc_installed || gpu_inf.vendor != GPU_VENDOR_NVIDIA; if(allow_screen_capture) { - if(!wayland) { - if(gpu_inf.vendor == GPU_VENDOR_NVIDIA) - gtk_combo_box_text_append(record_area_selection_menu, "screen", "All monitors"); - else - gtk_combo_box_text_append(record_area_selection_menu, "screen", "All monitors (requires root access, may perform better)"); - - if(gpu_inf.vendor == GPU_VENDOR_NVIDIA) - gtk_combo_box_text_append(record_area_selection_menu, "screen-direct-force", "All monitors (for VRR. No cursor, may have driver issues. Only use with VRR monitors!)"); + if(!wayland && gpu_inf.vendor == GPU_VENDOR_NVIDIA) { + gtk_combo_box_text_append(record_area_selection_menu, "screen", "All monitors"); + gtk_combo_box_text_append(record_area_selection_menu, "screen-direct-force", "All monitors (for VRR. No cursor, may have driver issues. Only use with VRR monitors!)"); } void *connection = NULL; @@ -2645,9 +2640,9 @@ static void load_config(const gpu_info &gpu_inf) { if(!wayland && strcmp(config.main_config.record_area_option.c_str(), "window") == 0) { // - } else if(!wayland && strcmp(config.main_config.record_area_option.c_str(), "focused") == 0) { + } else if(!wayland && gpu_inf.vendor == GPU_VENDOR_NVIDIA && strcmp(config.main_config.record_area_option.c_str(), "focused") == 0) { // - } else if(!wayland && (strcmp(config.main_config.record_area_option.c_str(), "screen") == 0 || strcmp(config.main_config.record_area_option.c_str(), "screen-direct-force") == 0)) { + } else if(!wayland && gpu_inf.vendor == GPU_VENDOR_NVIDIA && (strcmp(config.main_config.record_area_option.c_str(), "screen") == 0 || strcmp(config.main_config.record_area_option.c_str(), "screen-direct-force") == 0)) { // } else { void *connection = NULL; |