On Tue, 26 Jan 2010 22:25:04 -0800, Alan Coopersmith <[email protected]> 
wrote:

> Fixes crash when xscreensaver tries to use GammaRamp calls to fade out
> http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6915712

This seems odd to me; how can you have a crtc and no randr_crtc?

> @@ -1077,7 +1079,8 @@ xf86GetGammaRampSize(ScreenPtr pScreen)
>       xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
>       RRCrtcPtr crtc = 
> config->output[config->compat_output]->crtc->randr_crtc;
>  
> -     return crtc->gammaSize;
> +     if (crtc)
> +         return crtc->gammaSize;

Uh, what's the return value if you don't have a crtc?

-- 
[email protected]

Attachment: pgpwQXQzmlRZD.pgp
Description: PGP signature

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to