sync SCR_LoadImageWithPalette usage

This commit is contained in:
Denis Pauk 2024-08-11 23:39:52 +03:00
parent a38c2b5cee
commit 1b86a84270
6 changed files with 5 additions and 5 deletions

View File

@ -758,7 +758,7 @@ SCR_LoadHiColor(const char* namewe, const char *ext, int *width, int *height,
Q_strlcat(filename, ".", sizeof(filename));
Q_strlcat(filename, ext, sizeof(filename));
VID_ImageDecode(filename, &data, &palette_in,
SCR_LoadImageWithPalette(filename, &data, &palette_in,
width, height, bitsPerPixel);
if (data == NULL)
{

View File

@ -907,7 +907,7 @@ LoadImageWithPalette(const char *filename, byte **pic, byte **palette,
}
void
VID_ImageDecode(const char *filename, byte **pic, byte **palette,
SCR_LoadImageWithPalette(const char *filename, byte **pic, byte **palette,
int *width, int *height, int *bitsPerPixel)
{
LoadImageWithPalette(filename, pic, palette, width, height, bitsPerPixel);

View File

@ -507,8 +507,6 @@ void V_AddEntity (entity_t *ent);
void V_AddParticle (vec3_t org, unsigned int color, float alpha);
void V_AddLight (vec3_t org, float intensity, float r, float g, float b);
void V_AddLightStyle (int style, float r, float g, float b);
void VID_ImageDecode(const char *filename, byte **pic, byte **palette,
int *width, int *height, int *bitsPerPixel);
void VID_GetPalette(byte **colormap, unsigned *d_8to24table);
void VID_GetPalette24to8(const byte *d_8to24table, byte** d_16to8table);
unsigned VID_PaletteColor(byte color);

View File

@ -59,6 +59,8 @@ extern int crosshair_width, crosshair_height;
void SCR_AddDirtyPoint(int x, int y);
void SCR_DirtyScreen(void);
void SCR_LoadImageWithPalette(const char *filename, byte **pic, byte **palette,
int *width, int *height, int *bitsPerPixel);
void SCR_PlayCinematic(char *name);
qboolean SCR_DrawCinematic(void);
void SCR_RunCinematic(void);

View File

@ -447,7 +447,7 @@ VID_LoadRenderer(void)
ri.Vid_GetModeInfo = VID_GetModeInfo;
ri.Vid_MenuInit = VID_MenuInit;
ri.Vid_WriteScreenshot = VID_WriteScreenshot;
ri.VID_ImageDecode = VID_ImageDecode;
ri.VID_ImageDecode = SCR_LoadImageWithPalette;
ri.VID_GetPalette = VID_GetPalette;
ri.VID_GetPalette24to8 = VID_GetPalette24to8;
ri.Vid_RequestRestart = VID_RequestRestart;

0
value
View File