attempt fix morphos
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3292 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d0a8a8ee9d
commit
9c9c655d6c
1 changed files with 0 additions and 3 deletions
|
@ -625,7 +625,6 @@ void GLVID_SetPalette (unsigned char *palette)
|
||||||
|
|
||||||
pal = palette;
|
pal = palette;
|
||||||
table1 = d_8to24rgbtable;
|
table1 = 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]];
|
||||||
|
@ -634,9 +633,7 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue