[Spice-devel] [PATCH] [xf86-video-qxl] Skip modes more precisely.
Marc-André Lureau
mlureau at redhat.com
Fri Aug 22 03:32:50 PDT 2014
ack
----- Original Message -----
>
> Signed-off-by: Jeremy White <jwhite at codeweavers.com>
> ---
> 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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
More information about the Spice-devel
mailing list