rpms/xorg-x11-server/F-13 xserver-1.8-randr-initial.patch,NONE,1.1

Ben Skeggs bskeggs at fedoraproject.org
Mon Jun 7 01:28:56 UTC 2010


Author: bskeggs

Update of /cvs/pkgs/rpms/xorg-x11-server/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv8920

Added Files:
	xserver-1.8-randr-initial.patch 
Log Message:
and add the patch..

xserver-1.8-randr-initial.patch:
 xf86Crtc.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

--- NEW FILE xserver-1.8-randr-initial.patch ---
>From f22b6f8a5899f125de63738e69aaddc2dd0a5d0a Mon Sep 17 00:00:00 2001
From: Ben Skeggs <bskeggs at redhat.com>
Date: Mon, 7 Jun 2010 10:10:10 +1000
Subject: [PATCH] randr: prevent an unnecessary screen resize with multiple displays

crtc->{x,y} is always 0 when xf86DefaultScreenLimits() is called, so we
calculate too small an area for the initial framebuffer and force a resize
to happen.

This commit fixes the code to use desired{X,Y} instead, which contains the
initial output positions.

Signed-off-by: Ben Skeggs <bskeggs at redhat.com>
---
 hw/xfree86/modes/xf86Crtc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 51e7b5a..c2ad7bc 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -1041,8 +1041,8 @@ xf86DefaultScreenLimits (ScrnInfoPtr scrn, int *widthp, int *heightp,
 
 	if (crtc->enabled)
 	{
-	    crtc_width = crtc->x + xf86ModeWidth (&crtc->desiredMode, crtc->desiredRotation);
-	    crtc_height = crtc->y + xf86ModeHeight (&crtc->desiredMode, crtc->desiredRotation);
+	    crtc_width = crtc->desiredX + xf86ModeWidth (&crtc->desiredMode, crtc->desiredRotation);
+	    crtc_height = crtc->desiredY + xf86ModeHeight (&crtc->desiredMode, crtc->desiredRotation);
 	}
 	if (!canGrow) {
 	    for (o = 0; o < config->num_output; o++)
-- 
1.6.6




More information about the scm-commits mailing list