Fix a severe braino, and get less excessively parenthetical in one spot.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-08-10 03:07:34 +00:00
parent 753928bd39
commit ca4d4791c9
3 changed files with 7 additions and 7 deletions

View file

@ -371,9 +371,9 @@ SCR_ApplyBlend (void) // Used to be V_UpdatePalette
b = basepal[2];
basepal += 3;
r += ((int) (v_blend[3] * (v_blend[0] * 256 - r)));
g += ((int) (v_blend[3] * (v_blend[1] * 256 - g)));
b += ((int) (v_blend[3] * (v_blend[2] * 256 - b)));
r += (int) (v_blend[3] * (v_blend[0] * 256 - r));
g += (int) (v_blend[3] * (v_blend[1] * 256 - g));
b += (int) (v_blend[3] * (v_blend[2] * 256 - b));
newpal[0] = gammatable[r];
newpal[1] = gammatable[g];

View file

@ -75,11 +75,11 @@ static SCR_Func scr_funcs[] = {
0
};
extern void V_CalcBlend (void);
extern void V_PrepBlend (void);
void
CL_UpdateScreen (double realtime)
{
V_CalcBlend ();
V_PrepBlend ();
SCR_UpdateScreen (realtime, scr_funcs, cl_hudswap->int_val);
}

View file

@ -79,12 +79,12 @@ static SCR_Func scr_funcs[] = {
};
extern void V_CalcBlend (void);
extern void V_PrepBlend (void);
void
CL_UpdateScreen (double realtime)
{
V_CalcBlend ();
V_PrepBlend ();
SCR_UpdateScreen (realtime, scr_funcs, cl_hudswap->int_val);
}