attempt fix other platforms

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3293 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2009-07-18 03:47:21 +00:00
parent 9c9c655d6c
commit 40bc6b577c
3 changed files with 0 additions and 10 deletions

View File

@ -692,7 +692,6 @@ void GLVID_SetPalette (unsigned char *palette)
unsigned r,g,b;
unsigned short i;
unsigned *table;
unsigned *table2;
extern qbyte gammatable[256];
//
@ -702,7 +701,6 @@ void GLVID_SetPalette (unsigned char *palette)
pal = palette;
table = d_8to24rgbtable;
table2 = d_8to24bgrtable;
for (i=0 ; i<256 ; i++)
{
r = gammatable[pal[0]];
@ -711,10 +709,8 @@ void GLVID_SetPalette (unsigned char *palette)
pal += 3;
*table++ = BigLong((r<<24)|(g<<16)|(b<<8)|255);
*table2++ = BigLong((b<<24)|(g<<16)|(r<<8)|255);
}
d_8to24bgrtable[255] &= BigLong(0xffffff00); // 255 is transparent
d_8to24rgbtable[255] &= BigLong(0xffffff00); // 255 is transparent
}

View File

@ -162,14 +162,12 @@ void GLVID_SetPalette (unsigned char *palette)
unsigned int r,g,b;
int i;
unsigned *table1;
unsigned *table2;
extern qbyte gammatable[256];
Con_Printf("Converting 8to24\n");
pal = palette;
table1 = d_8to24rgbtable;
table2 = d_8to24bgrtable;
if (vid_hardwaregamma.value)
{
@ -181,7 +179,6 @@ void GLVID_SetPalette (unsigned char *palette)
pal += 3;
*table1++ = LittleLong((255<<24) + (r<<0) + (g<<8) + (b<<16));
*table2++ = LittleLong((255<<24) + (r<<16) + (g<<8) + (b<<0));
}
}
else
@ -194,10 +191,8 @@ void GLVID_SetPalette (unsigned char *palette)
pal += 3;
*table1++ = LittleLong((255<<24) + (r<<0) + (g<<8) + (b<<16));
*table2++ = LittleLong((255<<24) + (r<<16) + (g<<8) + (b<<0));
}
}
d_8to24bgrtable[255] &= LittleLong(0xffffff); // 255 is transparent
d_8to24rgbtable[255] &= LittleLong(0xffffff); // 255 is transparent
Con_Printf("Converted\n");
}

View File

@ -618,7 +618,6 @@ void GLVID_SetPalette (unsigned char *palette)
unsigned int r,g,b;
int i;
unsigned *table1;
unsigned *table2;
extern qbyte gammatable[256];
Con_Printf("Converting 8to24\n");