diff --git a/libs/video/renderer/sw/screen.c b/libs/video/renderer/sw/screen.c index 69c9306d4..5cf7a36d6 100644 --- a/libs/video/renderer/sw/screen.c +++ b/libs/video/renderer/sw/screen.c @@ -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]; diff --git a/nq/source/cl_screen.c b/nq/source/cl_screen.c index 9e7916091..8a9a3fba9 100644 --- a/nq/source/cl_screen.c +++ b/nq/source/cl_screen.c @@ -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); } diff --git a/qw/source/cl_screen.c b/qw/source/cl_screen.c index ce50d057a..e92e7a739 100644 --- a/qw/source/cl_screen.c +++ b/qw/source/cl_screen.c @@ -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); }