From 40bc6b577c6f08c275d6297d6ccb528af91897b8 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sat, 18 Jul 2009 03:47:21 +0000 Subject: [PATCH] attempt fix other platforms git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3293 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidlinuxglx.c | 4 ---- engine/gl/gl_vidmacos.c | 5 ----- engine/gl/gl_vidmorphos.c | 1 - 3 files changed, 10 deletions(-) diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index a2642d3c1..cc469b3e6 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -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 } diff --git a/engine/gl/gl_vidmacos.c b/engine/gl/gl_vidmacos.c index 8634a0b60..ba71df52f 100644 --- a/engine/gl/gl_vidmacos.c +++ b/engine/gl/gl_vidmacos.c @@ -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"); } diff --git a/engine/gl/gl_vidmorphos.c b/engine/gl/gl_vidmorphos.c index e52c827c3..087fff053 100644 --- a/engine/gl/gl_vidmorphos.c +++ b/engine/gl/gl_vidmorphos.c @@ -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");