mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
[client] Fix incorrect function component setup
Need to pass the address of the pointer :/
This commit is contained in:
parent
2fb5b67012
commit
c6b79d49a4
4 changed files with 9 additions and 8 deletions
|
@ -52,7 +52,7 @@ extern int scr_copytop;
|
|||
extern qboolean scr_skipupdate;
|
||||
|
||||
struct view_pos_s;
|
||||
void R_TimeGraph (struct view_pos_s abs);
|
||||
void R_ZGraph (struct view_pos_s abs);
|
||||
void R_TimeGraph (struct view_pos_s abs, struct view_pos_s len);
|
||||
void R_ZGraph (struct view_pos_s abs, struct view_pos_s len);
|
||||
|
||||
#endif//__QF_screen_h
|
||||
|
|
|
@ -220,15 +220,16 @@ CL_Init_Screen (void)
|
|||
View_SetPos (timegraph_view, 0, 0);
|
||||
View_SetLen (timegraph_view, r_data->vid->width, 100);
|
||||
View_SetGravity (timegraph_view, grav_southwest);
|
||||
Ent_SetComponent (timegraph_view.id, hud_func, timegraph_view.reg,
|
||||
R_TimeGraph);
|
||||
void *rtg = R_TimeGraph;
|
||||
Ent_SetComponent (timegraph_view.id, hud_func, timegraph_view.reg, &rtg);
|
||||
View_SetVisible (timegraph_view, r_timegraph);
|
||||
|
||||
zgraph_view = View_New (hud_registry, cl_screen_view);
|
||||
View_SetPos (zgraph_view, 0, 0);
|
||||
View_SetLen (zgraph_view, r_data->vid->width, 100);
|
||||
View_SetGravity (zgraph_view, grav_southwest);
|
||||
Ent_SetComponent (zgraph_view.id, hud_func, zgraph_view.reg, R_ZGraph);
|
||||
void *rzg = R_ZGraph;
|
||||
Ent_SetComponent (zgraph_view.id, hud_func, zgraph_view.reg, &rzg);
|
||||
View_SetVisible (zgraph_view, r_zgraph);
|
||||
|
||||
const char *name = "gfx/loading.lmp";
|
||||
|
|
|
@ -50,7 +50,7 @@ int graphval;
|
|||
Performance monitoring tool
|
||||
*/
|
||||
void
|
||||
R_TimeGraph (view_pos_t abs)
|
||||
R_TimeGraph (view_pos_t abs, view_pos_t len)
|
||||
{
|
||||
static int timex;
|
||||
int a;
|
||||
|
@ -85,7 +85,7 @@ R_TimeGraph (view_pos_t abs)
|
|||
}
|
||||
|
||||
void
|
||||
R_ZGraph (view_pos_t abs)
|
||||
R_ZGraph (view_pos_t abs, view_pos_t len)
|
||||
{
|
||||
int w;
|
||||
static int height[256];
|
||||
|
|
|
@ -157,7 +157,7 @@ void
|
|||
CL_NetGraph_Init (void)
|
||||
{
|
||||
cl_netgraph_view = View_New (hud_registry, cl_screen_view);
|
||||
View_SetPos (cl_netgraph_view, 0, hud_sb_lines);
|
||||
View_SetPos (cl_netgraph_view, 0, 64);
|
||||
View_SetLen (cl_netgraph_view, NET_TIMINGS + 16, cl_netgraph_height + 25);
|
||||
View_SetGravity (cl_netgraph_view, grav_southwest);
|
||||
void *f = CL_NetGraph;
|
||||
|
|
Loading…
Reference in a new issue