[gnome-control-center/gnome-3-22] display: Ensure the preselected	resolution matches the current mode
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-control-center/gnome-3-22] display: Ensure the preselected	resolution matches the current mode
- Date: Mon, 10 Oct 2016 16:28:35 +0000 (UTC)
commit d1698a628292cb8340799a28b75dd59a74fe7118
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Oct 10 16:45:07 2016 +0200
    display: Ensure the preselected resolution matches the current mode
    
    We need to check the interlaced flag too when preselecting the current
    resolution in the combo box since we now have separate entries for
    interlaced and regular resolutions of the same size.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772708
 panels/display/cc-display-panel.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 72720fa..3e6fc08 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -1888,7 +1888,8 @@ setup_resolution_combo_box (CcDisplayPanel  *panel,
 
           /* select the current mode in the combo box */
           if (gnome_rr_mode_get_width (modes[i]) == gnome_rr_mode_get_width (current_mode)
-              && gnome_rr_mode_get_height (modes[i]) == gnome_rr_mode_get_height (current_mode))
+              && gnome_rr_mode_get_height (modes[i]) == gnome_rr_mode_get_height (current_mode)
+              && gnome_rr_mode_get_is_interlaced (modes[i]) == gnome_rr_mode_get_is_interlaced 
(current_mode))
             {
               gtk_combo_box_set_active_iter (GTK_COMBO_BOX (priv->res_combo),
                                              &iter);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]