Signed-off-by: Jeremy White <[email protected]>
---
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel