winex11: Silence a noisy winediag ERR in xrandr12_init_modes

Henri Verbeet hverbeet at gmail.com
Tue May 6 02:13:20 CDT 2014


On 5 May 2014 22:53, André Hentschel <nerv at dawncrow.de> wrote:
> -        ERR_(winediag)("Broken NVIDIA RandR detected, falling back to RandR 1.0. "
> -                       "Please consider using the Nouveau driver instead.\n");
> +        static int once;
> +        if (!once++) ERR_(winediag)("Broken NVIDIA RandR detected, falling back to RandR 1.0. "
> +                                    "Please consider using the Nouveau driver instead.\n");
Does this actually help? We really shouldn't be calling
X11DRV_XRandR_Init() much more often than once per process.



More information about the wine-devel mailing list