mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-11 10:10:48 +00:00
Move palette setting into viddef_t.
This commit is contained in:
parent
e08d5ccb41
commit
a093e6af97
6 changed files with 3 additions and 15 deletions
|
@ -68,6 +68,7 @@ typedef struct {
|
||||||
void (*flush_caches)(void);
|
void (*flush_caches)(void);
|
||||||
void (*init_caches)(void *cache, int size);
|
void (*init_caches)(void *cache, int size);
|
||||||
void (*do_screen_buffer)(void);
|
void (*do_screen_buffer)(void);
|
||||||
|
void (*set_palette)(const byte *palette);
|
||||||
|
|
||||||
void (*end_rendering)(void);
|
void (*end_rendering)(void);
|
||||||
void *(*load_library)(void);
|
void *(*load_library)(void);
|
||||||
|
|
|
@ -13,7 +13,6 @@ extern unsigned short sw32_8to16table[256];
|
||||||
void VID_GetWindowSize (int def_w, int def_h);
|
void VID_GetWindowSize (int def_w, int def_h);
|
||||||
|
|
||||||
void VID_SetPalette (unsigned char *palette);
|
void VID_SetPalette (unsigned char *palette);
|
||||||
void VID_ShiftPalette (unsigned char *palette);
|
|
||||||
void VID_InitGamma (unsigned char *);
|
void VID_InitGamma (unsigned char *);
|
||||||
qboolean VID_SetGamma (double);
|
qboolean VID_SetGamma (double);
|
||||||
void VID_UpdateGamma (struct cvar_s *);
|
void VID_UpdateGamma (struct cvar_s *);
|
||||||
|
|
|
@ -760,5 +760,5 @@ Draw_BlendScreen (quat_t color)
|
||||||
newpal[2] = vid.gammatable[b];
|
newpal[2] = vid.gammatable[b];
|
||||||
newpal += 3;
|
newpal += 3;
|
||||||
}
|
}
|
||||||
VID_ShiftPalette (pal);
|
vid.set_palette (pal);
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,9 +103,3 @@ VID_InitBuffers (void)
|
||||||
if (viddef.init_caches)
|
if (viddef.init_caches)
|
||||||
viddef.init_caches (viddef.surfcache, cachesize);
|
viddef.init_caches (viddef.surfcache, cachesize);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
VID_ShiftPalette (unsigned char *p)
|
|
||||||
{
|
|
||||||
VID_SetPalette (p);
|
|
||||||
}
|
|
||||||
|
|
|
@ -1234,7 +1234,7 @@ sw32_Draw_BlendScreen (quat_t color)
|
||||||
newpal[2] = vid.gammatable[b];
|
newpal[2] = vid.gammatable[b];
|
||||||
newpal += 3;
|
newpal += 3;
|
||||||
}
|
}
|
||||||
VID_ShiftPalette (pal);
|
vid.set_palette (pal);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
|
|
@ -267,9 +267,3 @@ VID_InitBuffers (void)
|
||||||
if (vid.init_caches)
|
if (vid.init_caches)
|
||||||
vid.init_caches (vid.surfcache, cachesize);
|
vid.init_caches (vid.surfcache, cachesize);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
VID_ShiftPalette (unsigned char *p)
|
|
||||||
{
|
|
||||||
VID_SetPalette (p);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue