Get rid of palette
This commit is contained in:
parent
6490caedf5
commit
c656905f3c
2 changed files with 2 additions and 9 deletions
|
@ -853,7 +853,7 @@ void VID_LoadGlx13()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void VID_Init(unsigned char *palette)
|
void VID_Init(void)
|
||||||
{
|
{
|
||||||
char gldir[MAX_OSPATH];
|
char gldir[MAX_OSPATH];
|
||||||
int Event, Error;
|
int Event, Error;
|
||||||
|
@ -866,8 +866,6 @@ void VID_Init(unsigned char *palette)
|
||||||
|
|
||||||
vid.maxwarpwidth = WARP_WIDTH;
|
vid.maxwarpwidth = WARP_WIDTH;
|
||||||
vid.maxwarpheight = WARP_HEIGHT;
|
vid.maxwarpheight = WARP_HEIGHT;
|
||||||
vid.colormap = host_colormap;
|
|
||||||
vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048));
|
|
||||||
|
|
||||||
if (!(dpy = XOpenDisplay(NULL))) {
|
if (!(dpy = XOpenDisplay(NULL))) {
|
||||||
fprintf(stderr, "Error couldn't open the X display\n");
|
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);
|
sprintf (gldir, "%s/glquake", com_gamedir);
|
||||||
Sys_mkdir (gldir);
|
Sys_mkdir (gldir);
|
||||||
|
|
||||||
VID_SetPalette(palette);
|
|
||||||
|
|
||||||
Con_SafePrintf ("Video mode %dx%d initialized.\n", scr_width, scr_height);
|
Con_SafePrintf ("Video mode %dx%d initialized.\n", scr_width, scr_height);
|
||||||
|
|
||||||
vid.recalc_refdef = 1; // force a surface cache flush
|
vid.recalc_refdef = 1; // force a surface cache flush
|
||||||
|
|
|
@ -95,7 +95,7 @@ static void Check_Gamma (unsigned char *pal)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void VID_Init (unsigned char *palette)
|
void VID_Init (void)
|
||||||
{
|
{
|
||||||
int pnum, chunk;
|
int pnum, chunk;
|
||||||
byte *cache;
|
byte *cache;
|
||||||
|
@ -131,8 +131,6 @@ void VID_Init (unsigned char *palette)
|
||||||
vid.height = BASEHEIGHT;
|
vid.height = BASEHEIGHT;
|
||||||
vid.maxwarpwidth = WARP_WIDTH;
|
vid.maxwarpwidth = WARP_WIDTH;
|
||||||
vid.maxwarpheight = WARP_HEIGHT;
|
vid.maxwarpheight = WARP_HEIGHT;
|
||||||
vid.colormap = host_colormap;
|
|
||||||
//vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048));
|
|
||||||
|
|
||||||
if ((pnum=COM_CheckParm("-winsize")))
|
if ((pnum=COM_CheckParm("-winsize")))
|
||||||
{
|
{
|
||||||
|
@ -191,7 +189,6 @@ void VID_Init (unsigned char *palette)
|
||||||
sprintf (gldir, "%s/glquake", com_gamedir);
|
sprintf (gldir, "%s/glquake", com_gamedir);
|
||||||
Sys_mkdir (gldir);
|
Sys_mkdir (gldir);
|
||||||
|
|
||||||
VID_SetPalette(palette);
|
|
||||||
SDL_WM_SetCaption("tenebrae-sdl","tenebrae-sdl");
|
SDL_WM_SetCaption("tenebrae-sdl","tenebrae-sdl");
|
||||||
|
|
||||||
// Check for 3DFX Extensions and initialize them.
|
// Check for 3DFX Extensions and initialize them.
|
||||||
|
|
Loading…
Reference in a new issue