Re: [PATCH] [xf86-video-qxl] Skip modes more precisely.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ack

----- Original Message -----
> 
> Signed-off-by: Jeremy White <jwhite@xxxxxxxxxxxxxxx>
> ---
>  src/qxl_ums_mode.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/qxl_ums_mode.c b/src/qxl_ums_mode.c
> index 8959242..e4a7edc 100644
> --- a/src/qxl_ums_mode.c
> +++ b/src/qxl_ums_mode.c
> @@ -430,10 +430,10 @@ qxl_initialize_x_modes (qxl_screen_t *qxl, ScrnInfoPtr
> pScrn,
>      {
>  	if (qxl->modes[i].orientation == 0)
>  	{
> -	    size = qxl->modes[i].x_res * qxl->modes[i].y_res * 4;
> +	    size = qxl->modes[i].y_res * qxl->modes[i].stride;
>  	    if (size > qxl->surface0_size)
>  	    {
> -		ErrorF ("skipping mode %dx%d not fitting in surface0",
> +		ErrorF ("skipping mode %dx%d not fitting in surface0\n",
>  		        qxl->modes[i].x_res, qxl->modes[i].y_res);
>  		continue;
>  	    }
> --
> 1.7.10.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]