From b4e3f07474c919af0e484a71fb86c788a703ad8c Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 25 Jun 2012 16:20:31 +0300 Subject: qxl_driver: qxl_init_randr: limit width/height to 8192, real check done on randr screen resize callback --- src/qxl_driver.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/qxl_driver.c b/src/qxl_driver.c index a24932f..f792d07 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -1775,28 +1775,12 @@ qxl_init_randr(ScrnInfoPtr pScrn, qxl_screen_t *qxl) qxl_crtc_private *qxl_crtc; int i; xf86OutputPtr output; - int maxWidth; - int maxHeight; - - /* TODO: Hack */ - switch (qxl->num_heads) { - case 1: - maxWidth = 1024; - maxHeight = 768; - break; - case 2: - maxWidth = 2048; - maxHeight = 1024; - default: - maxWidth = (qxl->num_heads > 4 ? 4 : qxl->num_heads) * 1280; - maxHeight = 1024; - } xf86CrtcConfigInit(pScrn, &qxl_xf86crtc_config_funcs); - /* This is actually redundant, it's overwritten by a later call via + /* CHECKME: This is actually redundant, it's overwritten by a later call via * xf86InitialConfiguration */ - xf86CrtcSetSizeRange(pScrn, 320, 200, maxWidth, maxHeight); + xf86CrtcSetSizeRange(pScrn, 320, 200, 8192, 8192); qxl->crtcs = xnfcalloc(sizeof(xf86CrtcPtr), qxl->num_heads); qxl->outputs = xnfcalloc(sizeof(xf86OutputPtr), qxl->num_heads); -- cgit v1.2.3