]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - xorg-x11-server/patches/xserver-1.7.1-gamma-kdm-fix.patch
Move all packages to root.
[people/ms/ipfire-3.x.git] / xorg-x11-server / patches / xserver-1.7.1-gamma-kdm-fix.patch
CommitLineData
313ed234
SS
1From acc64ce5be7383c09e88a23aab06ebc2403f2ca3 Mon Sep 17 00:00:00 2001
2From: Bill Nottingham <notting@redhat.com>
3Date: Fri, 6 Nov 2009 10:32:27 +1000
4Subject: [PATCH] fix KDM gamma issue on vt switch
5
6---
7 hw/xfree86/modes/xf86RandR12.c | 4 ++++
8 1 files changed, 4 insertions(+), 0 deletions(-)
9
10diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
11index 6ea9d26..ece12b9 100644
12--- a/hw/xfree86/modes/xf86RandR12.c
13+++ b/hw/xfree86/modes/xf86RandR12.c
14@@ -1761,6 +1761,7 @@ xf86RandR12Init12 (ScreenPtr pScreen)
15 ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
16 rrScrPrivPtr rp = rrGetScrPriv(pScreen);
17 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);
18+ int i;
19
20 rp->rrGetInfo = xf86RandR12GetInfo12;
21 rp->rrScreenSetSize = xf86RandR12ScreenSetSize;
22@@ -1790,6 +1791,9 @@ xf86RandR12Init12 (ScreenPtr pScreen)
23 */
24 if (!xf86RandR12SetInfo12 (pScreen))
25 return FALSE;
26+ for (i = 0; i < rp->numCrtcs; i++) {
27+ xf86RandR12CrtcGetGamma(pScreen, rp->crtcs[i]);
28+ }
29 return TRUE;
30 }
31
32--
331.6.5.1
34