[Spice-devel] [PATCH] [xf86-video-qxl] Skip modes more precisely.

Jeremy White jwhite at codeweavers.com
Thu Aug 21 12:01:39 PDT 2014


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



More information about the Spice-devel mailing list