mirror of
https://github.com/X11Libre/xf86-video-r128.git
synced 2026-03-24 01:24:26 +00:00
drop #ifdef RANDR_12_INTERFACE
All (non-ancient) Xservers have it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
f49ccb20cb
commit
04752db35c
@@ -1621,12 +1621,10 @@ static void R128LoadPalette(ScrnInfoPtr pScrn, int numColors,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Make the change through RandR */
|
/* Make the change through RandR */
|
||||||
#ifdef RANDR_12_INTERFACE
|
|
||||||
if (crtc->randr_crtc)
|
if (crtc->randr_crtc)
|
||||||
RRCrtcGammaSet(crtc->randr_crtc, lut_r, lut_g, lut_b);
|
RRCrtcGammaSet(crtc->randr_crtc, lut_r, lut_g, lut_b);
|
||||||
else
|
else
|
||||||
#endif
|
crtc->funcs->gamma_set(crtc, lut_r, lut_g, lut_b, 256);
|
||||||
crtc->funcs->gamma_set(crtc, lut_r, lut_g, lut_b, 256);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user