shithub: qk1

Download patch

ref: 4a40fbd789b5308e3904cb73b164f3f8f270c4d0
parent: a2c587e7d7a8b72a7ef9afcd119d8cfb20076b54
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Oct 14 14:14:37 EDT 2024

view: rename and move around

--- a/client.h
+++ b/client.h
@@ -303,19 +303,6 @@
 void CL_ParseServerMessage (void);
 
 //
-// view
-//
-void V_StartPitchDrift (void);
-void V_StopPitchDrift (void);
-
-void V_RenderView (void);
-void V_UpdatePalette (void);
-void V_Register (void);
-void V_ParseDamage (void);
-void V_SetContentsColor (int contents);
-
-
-//
 // cl_tent
 //
 void CL_InitTEnts (void);
--- a/screen.c
+++ b/screen.c
@@ -680,7 +680,7 @@
 		M_Draw ();
 	}
 	SCR_DrawFPS();
-	V_UpdatePalette ();
+	V_ApplyShifts();
 
 	flipfb();
 }
--- a/view.c
+++ b/view.c
@@ -426,10 +426,10 @@
 
 /*
 =============
-V_UpdatePalette
+V_ApplyShifts
 =============
 */
-void V_UpdatePalette (void)
+void V_ApplyShifts (void)
 {
 	int		i, j;
 
--- a/view.h
+++ b/view.h
@@ -1,7 +1,11 @@
 extern cvar_t v_scale;
 
-void V_Init (void);
-void V_RenderView (void);
-float V_CalcRoll (vec3_t angles, vec3_t velocity);
-void V_UpdatePalette (void);
+void V_Init(void);
+void V_RenderView(void);
+void V_ParseDamage (void);
+float V_CalcRoll(vec3_t angles, vec3_t velocity);
+void V_StartPitchDrift (void);
+void V_StopPitchDrift (void);
+void V_SetContentsColor (int contents);
+void V_ApplyShifts(void);
 void V_NewMap(void);