c22de5d369
- Update to current git master (1.9 snapshot 4). - New ABIS: videodrv 8, input 11, extension 4 - Drop upstreamed patches.
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From a4d1b05d1f8e98d4ecc332d9573f207e86234e18 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 12/17] randr gamma reload hack
|
|
|
|
---
|
|
hw/xfree86/modes/xf86RandR12.c | 6 ++++++
|
|
1 files changed, 6 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
|
|
index 043ceee..a73b003 100644
|
|
--- a/hw/xfree86/modes/xf86RandR12.c
|
|
+++ b/hw/xfree86/modes/xf86RandR12.c
|
|
@@ -1775,6 +1775,7 @@ xf86RandR12EnterVT (int screen_index, int flags)
|
|
ScreenPtr pScreen = screenInfo.screens[screen_index];
|
|
ScrnInfoPtr pScrn = xf86Screens[screen_index];
|
|
XF86RandRInfoPtr randrp = XF86RANDRINFO(pScreen);
|
|
+ rrScrPrivPtr rp = rrGetScrPriv(pScreen);
|
|
Bool ret;
|
|
|
|
if (randrp->orig_EnterVT) {
|
|
@@ -1786,6 +1787,11 @@ xf86RandR12EnterVT (int screen_index, int 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.7.1
|
|
|