mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-23 01:29:58 +00:00
randr: Improve per-crtc gamma support.
- The Gamma values from the monitor section are now used during initial config. - The old colormap system is disabled when gamma set hook is available. - Gamma values are now persistent for the lifetime of the xserver. - This requires no driver changes and should be driver ABI compatible.
This commit is contained in:
parent
1556815d34
commit
91f73b79b7
8 changed files with 249 additions and 7 deletions
|
|
@ -49,6 +49,7 @@
|
|||
#include "xf86_OSproc.h"
|
||||
#include "xf86str.h"
|
||||
#include "micmap.h"
|
||||
#include "xf86Crtc.h"
|
||||
|
||||
#ifdef XFreeXDGA
|
||||
#define _XF86DGA_SERVER_
|
||||
|
|
@ -141,6 +142,10 @@ Bool xf86HandleColormaps(
|
|||
int *indices;
|
||||
int elements;
|
||||
|
||||
/* If we support a better colormap system, then pretend we succeeded. */
|
||||
if (xf86_crtc_supports_gamma(pScrn))
|
||||
return TRUE;
|
||||
|
||||
if(!maxColors || !sigRGBbits || !loadPalette)
|
||||
return FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue