]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - xorg-x11-server/patches/xserver-1.7.0-randr-gamma-restore.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / xorg-x11-server / patches / xserver-1.7.0-randr-gamma-restore.patch
CommitLineData
313ed234
SS
1From 18d2bd8cb513a0436739916620532247f13dbf03 Mon Sep 17 00:00:00 2001
2From: Fedora X Ninjas <x@fedoraproject.org>
3Date: Thu, 8 Oct 2009 15:25:24 -0400
4Subject: [PATCH] randr gamma reload hack
5
6---
7 hw/xfree86/loader/sdksyms.c | 4 ++++
8 hw/xfree86/modes/xf86RandR12.c | 6 ++++++
9 2 files changed, 10 insertions(+), 0 deletions(-)
10
11diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
12index 6ea9d26..41bac11 100644
13--- a/hw/xfree86/modes/xf86RandR12.c
14+++ b/hw/xfree86/modes/xf86RandR12.c
15@@ -1746,12 +1746,18 @@ xf86RandR12EnterVT (int screen_index, int flags)
16 {
17 ScreenPtr pScreen = screenInfo.screens[screen_index];
18 XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);
19+ rrScrPrivPtr rp = rrGetScrPriv(pScreen);
20
21 if (randrp->orig_EnterVT) {
22 if (!randrp->orig_EnterVT (screen_index, flags))
23 return FALSE;
24 }
25
26+ /* reload gamma */
27+ int i;
28+ for (i = 0; i < rp->numCrtcs; i++)
29+ xf86RandR12CrtcSetGamma(pScreen, rp->crtcs[i]);
30+
31 return RRGetInfo (pScreen, TRUE); /* force a re-probe of outputs and notify clients about changes */
32 }
33
34--
351.6.5.rc2
36