diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-24 19:05:21 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-24 19:05:21 +0100 |
commit | 394d766d8c8555a0c8a09a4f6a6ab36ab3811d33 (patch) | |
tree | e35e82503095b64f0e10b3c05ee9d7266e894b3d /src | |
parent | 78e4de515fd65d3dca135ba4fa0a053100493785 (diff) |
Add screen-direct mode
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index ae2078f..39ef2a8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -811,7 +811,7 @@ static void record_area_item_change_callback(GtkComboBox *widget, gpointer userd gtk_spin_button_set_value(area_width_entry, attr.width); gtk_spin_button_set_value(area_height_entry, attr.height); } - } else if(strcmp(selected_window_area, "screen") == 0) { + } else if(strcmp(selected_window_area, "screen") == 0 || strcmp(selected_window_area, "screen-direct") == 0) { int screen = DefaultScreen(gdk_x11_get_default_xdisplay()); gtk_spin_button_set_value(area_width_entry, DisplayWidth(gdk_x11_get_default_xdisplay(), screen)); gtk_spin_button_set_value(area_height_entry, DisplayHeight(gdk_x11_get_default_xdisplay(), screen)); @@ -860,6 +860,7 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a gtk_combo_box_text_append(record_area_selection_menu, "window", "Window"); if(is_nv_fbc_installed()) { gtk_combo_box_text_append(record_area_selection_menu, "screen", "All monitors (HEVC, NvFBC)"); + gtk_combo_box_text_append(record_area_selection_menu, "screen-direct", "All monitors, direct mode (HEVC, NvFBC, VRR workaround)"); for_each_active_monitor_output(gdk_x11_get_default_xdisplay(), [](const XRROutputInfo *output_info, const XRRCrtcInfo*, const XRRModeInfo *mode_info) { std::string label = "Monitor "; label.append(output_info->name, output_info->nameLen); |