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:
Enrico Weigelt, metux IT consult
2024-05-24 16:19:35 +02:00
parent 74cf2305a0
commit 732fee2815
2 changed files with 0 additions and 6 deletions

View File

@@ -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

View File

@@ -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);