mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
9c9c655d6c
commit
40bc6b577c
3 changed files with 0 additions and 10 deletions
|
@ -692,7 +692,6 @@ void GLVID_SetPalette (unsigned char *palette)
|
||||||
unsigned r,g,b;
|
unsigned r,g,b;
|
||||||
unsigned short i;
|
unsigned short i;
|
||||||
unsigned *table;
|
unsigned *table;
|
||||||
unsigned *table2;
|
|
||||||
extern qbyte gammatable[256];
|
extern qbyte gammatable[256];
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -702,7 +701,6 @@ void GLVID_SetPalette (unsigned char *palette)
|
||||||
|
|
||||||
pal = palette;
|
pal = palette;
|
||||||
table = d_8to24rgbtable;
|
table = d_8to24rgbtable;
|
||||||
table2 = d_8to24bgrtable;
|
|
||||||
for (i=0 ; i<256 ; i++)
|
for (i=0 ; i<256 ; i++)
|
||||||
{
|
{
|
||||||
r = gammatable[pal[0]];
|
r = gammatable[pal[0]];
|
||||||
|
@ -711,10 +709,8 @@ void GLVID_SetPalette (unsigned char *palette)
|
||||||
pal += 3;
|
pal += 3;
|
||||||
|
|
||||||
*table++ = BigLong((r<<24)|(g<<16)|(b<<8)|255);
|
*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
|
d_8to24rgbtable[255] &= BigLong(0xffffff00); // 255 is transparent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,14 +162,12 @@ void GLVID_SetPalette (unsigned char *palette)
|
||||||
unsigned int r,g,b;
|
unsigned int r,g,b;
|
||||||
int i;
|
int i;
|
||||||
unsigned *table1;
|
unsigned *table1;
|
||||||
unsigned *table2;
|
|
||||||
extern qbyte gammatable[256];
|
extern qbyte gammatable[256];
|
||||||
|
|
||||||
Con_Printf("Converting 8to24\n");
|
Con_Printf("Converting 8to24\n");
|
||||||
|
|
||||||
pal = palette;
|
pal = palette;
|
||||||
table1 = d_8to24rgbtable;
|
table1 = d_8to24rgbtable;
|
||||||
table2 = d_8to24bgrtable;
|
|
||||||
|
|
||||||
if (vid_hardwaregamma.value)
|
if (vid_hardwaregamma.value)
|
||||||
{
|
{
|
||||||
|
@ -181,7 +179,6 @@ void GLVID_SetPalette (unsigned char *palette)
|
||||||
pal += 3;
|
pal += 3;
|
||||||
|
|
||||||
*table1++ = LittleLong((255<<24) + (r<<0) + (g<<8) + (b<<16));
|
*table1++ = LittleLong((255<<24) + (r<<0) + (g<<8) + (b<<16));
|
||||||
*table2++ = LittleLong((255<<24) + (r<<16) + (g<<8) + (b<<0));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -194,10 +191,8 @@ void GLVID_SetPalette (unsigned char *palette)
|
||||||
pal += 3;
|
pal += 3;
|
||||||
|
|
||||||
*table1++ = LittleLong((255<<24) + (r<<0) + (g<<8) + (b<<16));
|
*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
|
d_8to24rgbtable[255] &= LittleLong(0xffffff); // 255 is transparent
|
||||||
Con_Printf("Converted\n");
|
Con_Printf("Converted\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -618,7 +618,6 @@ void GLVID_SetPalette (unsigned char *palette)
|
||||||
unsigned int r,g,b;
|
unsigned int r,g,b;
|
||||||
int i;
|
int i;
|
||||||
unsigned *table1;
|
unsigned *table1;
|
||||||
unsigned *table2;
|
|
||||||
extern qbyte gammatable[256];
|
extern qbyte gammatable[256];
|
||||||
|
|
||||||
Con_Printf("Converting 8to24\n");
|
Con_Printf("Converting 8to24\n");
|
||||||
|
|
Loading…
Reference in a new issue