summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-08 15:35:23 -0400
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-15 19:24:32 +0200
commit907d0ff0b0f6934d37fbab4a6889295d70ae3496 (patch)
treef4738af389fd144ffd263ec5b256a30a5415ac00
parent557e23e82b6d738fab6fa6bd28b077dd81437b22 (diff)
Bypass rrcrtc.c screen size bounds check
-rw-r--r--src/qxl_driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 9039e50..42bcc13 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -40,6 +40,7 @@
#include <stdlib.h>
#include <xf86Crtc.h>
+#include <xf86RandR12.h>
#include "mspace.h"
@@ -1555,6 +1556,11 @@ qxl_screen_init(SCREEN_INIT_ARGS_DECL)
return FALSE;
CHECK_POINT();
+ /* fake transform support, to allow agent to switch crtc mode */
+ /* without X doing checks, see rrcrtc.c "Check screen size */
+ /* bounds" */
+ xf86RandR12SetTransformSupport(pScreen, TRUE);
+
return TRUE;
out: