39d960
From acc64ce5be7383c09e88a23aab06ebc2403f2ca3 Mon Sep 17 00:00:00 2001
39d960
From: Bill Nottingham <notting@redhat.com>
39d960
Date: Fri, 6 Nov 2009 10:32:27 +1000
39d960
Subject: [PATCH] fix KDM gamma issue on vt switch
39d960
39d960
---
39d960
 hw/xfree86/modes/xf86RandR12.c |    4 ++++
39d960
 1 files changed, 4 insertions(+), 0 deletions(-)
39d960
39d960
diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
39d960
index 6ea9d26..ece12b9 100644
39d960
--- a/hw/xfree86/modes/xf86RandR12.c
39d960
+++ b/hw/xfree86/modes/xf86RandR12.c
39d960
@@ -1761,6 +1761,7 @@ xf86RandR12Init12 (ScreenPtr pScreen)
39d960
     ScrnInfoPtr		pScrn = xf86Screens[pScreen->myNum];
39d960
     rrScrPrivPtr	rp = rrGetScrPriv(pScreen);
39d960
     XF86RandRInfoPtr	randrp  = XF86RANDRINFO(pScreen);
39d960
+    int i;
39d960
 
39d960
     rp->rrGetInfo = xf86RandR12GetInfo12;
39d960
     rp->rrScreenSetSize = xf86RandR12ScreenSetSize;
39d960
@@ -1790,6 +1791,9 @@ xf86RandR12Init12 (ScreenPtr pScreen)
39d960
      */
39d960
     if (!xf86RandR12SetInfo12 (pScreen))
39d960
 	return FALSE;
39d960
+    for (i = 0; i < rp->numCrtcs; i++) {
39d960
+	xf86RandR12CrtcGetGamma(pScreen, rp->crtcs[i]);
39d960
+    }
39d960
     return TRUE;
39d960
 }
39d960
 
39d960
-- 
39d960
1.6.5.1
39d960