open-src/xserver/xorg/16794101.patch
changeset 1379 a78b871e6ea3
equal deleted inserted replaced
1378:baafc0f40acc 1379:a78b871e6ea3
       
     1 --- a/hw/xfree86/modes/xf86Crtc.c	Tue Apr 16 23:07:39 2013
       
     2 +++ b/hw/xfree86/modes/xf86Crtc.c	Wed May 15 09:54:30 2013
       
     3 @@ -2599,7 +2599,7 @@
       
     4      xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(scrn);
       
     5      xf86CrtcPtr crtc = config->crtc[0];
       
     6      int c;
       
     7 -    int enabled = 0;
       
     8 +    int enabled = 0, failed = 0;
       
     9  
       
    10      /* A driver with this hook will take care of this */
       
    11      if (!crtc->funcs->set_mode_major) {
       
    12 @@ -2659,11 +2659,12 @@
       
    13                  if (config->output[o]->crtc == crtc)
       
    14                      config->output[o]->crtc = NULL;
       
    15              crtc->enabled = FALSE;
       
    16 +            ++failed;
       
    17  	}
       
    18      }
       
    19  
       
    20      xf86DisableUnusedFunctions(scrn);
       
    21 -    return enabled != 0;
       
    22 +    return enabled != 0 || failed == 0;
       
    23  }
       
    24  
       
    25  /**