From c656905f3cbc17eb3f2737f8dc3a2a8bfae70775 Mon Sep 17 00:00:00 2001 From: jpaana <> Date: Thu, 20 Nov 2003 00:50:09 +0000 Subject: [PATCH] Get rid of palette --- gl_vidlinuxglx.c | 6 +----- gl_vidsdl.c | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/gl_vidlinuxglx.c b/gl_vidlinuxglx.c index 803e883..20538d6 100644 --- a/gl_vidlinuxglx.c +++ b/gl_vidlinuxglx.c @@ -853,7 +853,7 @@ void VID_LoadGlx13() } -void VID_Init(unsigned char *palette) +void VID_Init(void) { char gldir[MAX_OSPATH]; int Event, Error; @@ -866,8 +866,6 @@ void VID_Init(unsigned char *palette) vid.maxwarpwidth = WARP_WIDTH; vid.maxwarpheight = WARP_HEIGHT; - vid.colormap = host_colormap; - vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048)); if (!(dpy = XOpenDisplay(NULL))) { fprintf(stderr, "Error couldn't open the X display\n"); @@ -896,8 +894,6 @@ void VID_Init(unsigned char *palette) sprintf (gldir, "%s/glquake", com_gamedir); Sys_mkdir (gldir); - VID_SetPalette(palette); - Con_SafePrintf ("Video mode %dx%d initialized.\n", scr_width, scr_height); vid.recalc_refdef = 1; // force a surface cache flush diff --git a/gl_vidsdl.c b/gl_vidsdl.c index b9bf32f..fc7397b 100644 --- a/gl_vidsdl.c +++ b/gl_vidsdl.c @@ -95,7 +95,7 @@ static void Check_Gamma (unsigned char *pal) } -void VID_Init (unsigned char *palette) +void VID_Init (void) { int pnum, chunk; byte *cache; @@ -131,8 +131,6 @@ void VID_Init (unsigned char *palette) vid.height = BASEHEIGHT; vid.maxwarpwidth = WARP_WIDTH; vid.maxwarpheight = WARP_HEIGHT; - vid.colormap = host_colormap; - //vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048)); if ((pnum=COM_CheckParm("-winsize"))) { @@ -191,7 +189,6 @@ void VID_Init (unsigned char *palette) sprintf (gldir, "%s/glquake", com_gamedir); Sys_mkdir (gldir); - VID_SetPalette(palette); SDL_WM_SetCaption("tenebrae-sdl","tenebrae-sdl"); // Check for 3DFX Extensions and initialize them.