31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From 0c05db308881b3b462dae4101312c0034e6288ba Mon Sep 17 00:00:00 2001
|
|
From: Fedora X Ninjas <x@fedoraproject.org>
|
|
Date: Wed, 12 Dec 2012 14:02:54 +1000
|
|
Subject: [PATCH] xf86crtc: don't use display for vx/vy for gpu screens
|
|
|
|
---
|
|
hw/xfree86/modes/xf86Crtc.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
|
|
index ba84e6b..61119b3 100644
|
|
--- a/hw/xfree86/modes/xf86Crtc.c
|
|
+++ b/hw/xfree86/modes/xf86Crtc.c
|
|
@@ -2420,11 +2420,11 @@ xf86InitialConfiguration(ScrnInfoPtr scrn, Bool canGrow)
|
|
config->debug_modes = xf86ReturnOptValBool(config->options,
|
|
OPTION_MODEDEBUG, FALSE);
|
|
|
|
- if (scrn->display->virtualX)
|
|
+ if (scrn->display->virtualX && !scrn->is_gpu)
|
|
width = scrn->display->virtualX;
|
|
else
|
|
width = config->maxWidth;
|
|
- if (scrn->display->virtualY)
|
|
+ if (scrn->display->virtualY && !scrn->is_gpu)
|
|
height = scrn->display->virtualY;
|
|
else
|
|
height = config->maxHeight;
|
|
--
|
|
1.8.0.1
|
|
|