summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-06-25 16:20:31 +0300
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-15 19:21:33 +0200
commitb4e3f07474c919af0e484a71fb86c788a703ad8c (patch)
tree3a825f87dce5c60e636a3434e7f6cf565ac2fdf7
parentd85e07921dda5e5401a336d415e8deee4b663252 (diff)
qxl_driver: qxl_init_randr: limit width/height to 8192, real check done on randr screen resize callback
-rw-r--r--src/qxl_driver.c20
1 files changed, 2 insertions, 18 deletions
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);