mirror of
https://github.com/X11Libre/xf86-video-xgi.git
synced 2026-03-24 01:24:35 +00:00
drop ifdef XGIGAMMA
It's always enabled, so no need for the extra #ifdef. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
This commit is contained in:
@@ -190,10 +190,6 @@ extern Bool g_bRunTimeDebug;
|
||||
#define XGI_XINERAMA_MAJOR_VERSION 1
|
||||
#define XGI_XINERAMA_MINOR_VERSION 1
|
||||
|
||||
#if 1
|
||||
#define XGIGAMMA /* Include code for gamma correction */
|
||||
#endif
|
||||
|
||||
/* Jong 09/28/2007; disable this because it causes cursor drawing incorrectly */
|
||||
#if 0 /* Include code for color hardware cursors */
|
||||
#define XGI_ARGB_CURSOR
|
||||
|
||||
@@ -619,7 +619,6 @@ XGILoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, LOCO *colors,
|
||||
|
||||
if (!IS_DUAL_HEAD(pXGI) || IS_SECOND_HEAD(pXGI)) {
|
||||
switch(pXGI->CurrentLayout.depth) {
|
||||
#ifdef XGIGAMMA
|
||||
case 15:
|
||||
if(dogamma1) {
|
||||
orXGIIDXREG(XGISR, 0x07, 0x04);
|
||||
@@ -674,7 +673,6 @@ PDEBUG(ErrorF("\ndogamma1 SR7=%x ", SR7));
|
||||
andXGIIDXREG(XGISR, 0x07, ~0x04);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
if((pScrn->rgbBits == 8) && (dogamma1))
|
||||
orXGIIDXREG(XGISR, 0x07, 0x04);
|
||||
|
||||
Reference in New Issue
Block a user