aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba®protonmail.com>2023-04-15 18:59:43 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-15 19:06:48 +0200
commite410116fe4df7b6de478b14ca074609d03b9e550 (patch)
treef3030f528ed1d2b45ee199af41132fbc7aa91388 /src
parente1ec2dad5b5aec6f2aae8284f8071acf33d1c58e (diff)
Re-enable amd/intel monitor recording
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 170cb81..f743a8e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1794,7 +1794,7 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a
record_area_selection_menu = GTK_COMBO_BOX_TEXT(gtk_combo_box_text_new());
gtk_combo_box_text_append(record_area_selection_menu, "window", "Window");
gtk_combo_box_text_append(record_area_selection_menu, "focused", "Follow focused window");
- const bool allow_screen_capture = nvfbc_installed;
+ const bool allow_screen_capture = nvfbc_installed || gpu_inf.vendor != GPU_VENDOR_NVIDIA;
if(allow_screen_capture) {
if(gpu_inf.vendor == GPU_VENDOR_NVIDIA)
gtk_combo_box_text_append(record_area_selection_menu, "screen", "All monitors");
@@ -2341,7 +2341,7 @@ static void load_config(const gpu_info &gpu_inf) {
}
if(config.main_config.record_area_option.empty()) {
- const bool allow_screen_capture = nvfbc_installed;
+ const bool allow_screen_capture = nvfbc_installed || gpu_inf.vendor != GPU_VENDOR_NVIDIA;
if(allow_screen_capture)
config.main_config.record_area_option = "screen";
else