]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - xorg-x11-server/patches/xserver-1.7.0-randr-gamma-restore.patch
Move all packages to root.
[people/amarx/ipfire-3.x.git] / xorg-x11-server / patches / xserver-1.7.0-randr-gamma-restore.patch
diff --git a/xorg-x11-server/patches/xserver-1.7.0-randr-gamma-restore.patch b/xorg-x11-server/patches/xserver-1.7.0-randr-gamma-restore.patch
new file mode 100644 (file)
index 0000000..5206141
--- /dev/null
@@ -0,0 +1,36 @@
+From 18d2bd8cb513a0436739916620532247f13dbf03 Mon Sep 17 00:00:00 2001
+From: Fedora X Ninjas <x@fedoraproject.org>
+Date: Thu, 8 Oct 2009 15:25:24 -0400
+Subject: [PATCH] randr gamma reload hack
+
+---
+ hw/xfree86/loader/sdksyms.c    |    4 ++++
+ hw/xfree86/modes/xf86RandR12.c |    6 ++++++
+ 2 files changed, 10 insertions(+), 0 deletions(-)
+
+diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
+index 6ea9d26..41bac11 100644
+--- a/hw/xfree86/modes/xf86RandR12.c
++++ b/hw/xfree86/modes/xf86RandR12.c
+@@ -1746,12 +1746,18 @@ xf86RandR12EnterVT (int screen_index, int flags)
+ {
+     ScreenPtr        pScreen = screenInfo.screens[screen_index];
+     XF86RandRInfoPtr randrp  = XF86RANDRINFO(pScreen);
++    rrScrPrivPtr     rp = rrGetScrPriv(pScreen);
+     if (randrp->orig_EnterVT) {
+       if (!randrp->orig_EnterVT (screen_index, flags))
+           return FALSE;
+     }
++    /* reload gamma */
++    int i;
++    for (i = 0; i < rp->numCrtcs; i++)
++      xf86RandR12CrtcSetGamma(pScreen, rp->crtcs[i]);
++
+     return RRGetInfo (pScreen, TRUE); /* force a re-probe of outputs and notify clients about changes */
+ }
+-- 
+1.6.5.rc2
+