Move palette setting into viddef_t.

This commit is contained in:
Bill Currie 2012-02-23 09:33:04 +09:00
parent e08d5ccb41
commit a093e6af97
6 changed files with 3 additions and 15 deletions

View file

@ -68,6 +68,7 @@ typedef struct {
void (*flush_caches)(void);
void (*init_caches)(void *cache, int size);
void (*do_screen_buffer)(void);
void (*set_palette)(const byte *palette);
void (*end_rendering)(void);
void *(*load_library)(void);

View file

@ -13,7 +13,6 @@ extern unsigned short sw32_8to16table[256];
void VID_GetWindowSize (int def_w, int def_h);
void VID_SetPalette (unsigned char *palette);
void VID_ShiftPalette (unsigned char *palette);
void VID_InitGamma (unsigned char *);
qboolean VID_SetGamma (double);
void VID_UpdateGamma (struct cvar_s *);

View file

@ -760,5 +760,5 @@ Draw_BlendScreen (quat_t color)
newpal[2] = vid.gammatable[b];
newpal += 3;
}
VID_ShiftPalette (pal);
vid.set_palette (pal);
}

View file

@ -103,9 +103,3 @@ VID_InitBuffers (void)
if (viddef.init_caches)
viddef.init_caches (viddef.surfcache, cachesize);
}
void
VID_ShiftPalette (unsigned char *p)
{
VID_SetPalette (p);
}

View file

@ -1234,7 +1234,7 @@ sw32_Draw_BlendScreen (quat_t color)
newpal[2] = vid.gammatable[b];
newpal += 3;
}
VID_ShiftPalette (pal);
vid.set_palette (pal);
}
break;
case 2:

View file

@ -267,9 +267,3 @@ VID_InitBuffers (void)
if (vid.init_caches)
vid.init_caches (vid.surfcache, cachesize);
}
void
VID_ShiftPalette (unsigned char *p)
{
VID_SetPalette (p);
}