[Spice-devel] [PATCH] Stop constraining the video mode to a maximum of 1024x768.

Jeremy White jwhite at codeweavers.com
Thu Sep 20 17:53:29 PDT 2012


---
 src/qxl_driver.c |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index f52fec6..dbe3a04 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -2309,12 +2309,6 @@ qxl_init_randr (ScrnInfoPtr pScrn, qxl_screen_t *qxl)
 	qxl_crtc->output = output;
     }
     
-    qxl->virtual_x = 1024;
-    qxl->virtual_y = 768;
-    
-    pScrn->display->virtualX = qxl->virtual_x;
-    pScrn->display->virtualY = qxl->virtual_y;
-    
     xf86InitialConfiguration (pScrn, TRUE);
     /* all crtcs are enabled here, but their mode is 0,
        resulting monitor config empty atm */
@@ -2495,6 +2489,10 @@ qxl_pre_init (ScrnInfoPtr pScrn, int flags)
     xf86PruneDriverModes (pScrn);
     
     qxl_init_randr (pScrn, qxl);
+
+    qxl->virtual_x = pScrn->display->virtualX;
+    qxl->virtual_y = pScrn->display->virtualX;
+
 #if 0
     /* If no modes are specified in xorg.conf, default to 1024x768 */
     if (pScrn->display->modes == NULL || pScrn->display->modes[0] == NULL)
-- 
1.7.9.5




More information about the Spice-devel mailing list