Rename global video_res to g_vidsize

This commit is contained in:
Marco Cawthorne 2024-07-24 09:13:58 -07:00
parent 802cf3a66a
commit 9cea5fa609
Signed by: eukara
GPG key ID: CE2032F0A2882A22
4 changed files with 7 additions and 7 deletions

View file

@ -29,28 +29,28 @@ SH_DrawSciScore(void)
vector pos; vector pos;
line = "^xFA0Scientist round score info:"; line = "^xFA0Scientist round score info:";
pos = (video_res / 2); pos = (g_vidsize / 2);
pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2); pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2);
pos[1] -= 64; pos[1] -= 64;
Font_DrawText(pos, line, FONT_CON); Font_DrawText(pos, line, FONT_CON);
line = sprintf("^xFA0Team Red: %d kills", serverkeyfloat("teamkills_1")); line = sprintf("^xFA0Team Red: %d kills", serverkeyfloat("teamkills_1"));
pos = (video_res / 2); pos = (g_vidsize / 2);
pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2); pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2);
pos[1] -= 36; pos[1] -= 36;
Font_DrawText(pos, line, FONT_CON); Font_DrawText(pos, line, FONT_CON);
line = sprintf("^xFA0Team Blue: %d kills", serverkeyfloat("teamkills_2")); line = sprintf("^xFA0Team Blue: %d kills", serverkeyfloat("teamkills_2"));
pos = (video_res / 2); pos = (g_vidsize / 2);
pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2); pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2);
pos[1] -= 24; pos[1] -= 24;
Font_DrawText(pos, line, FONT_CON); Font_DrawText(pos, line, FONT_CON);
line = sprintf("^xFA0Scientists left: %d", serverkeyfloat("sci_count")); line = sprintf("^xFA0Scientists left: %d", serverkeyfloat("sci_count"));
pos = (video_res / 2); pos = (g_vidsize / 2);
pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2); pos[0] -= (Font_StringWidth(line, FALSE, FONT_CON) / 2);
Font_DrawText(pos, line, FONT_CON); Font_DrawText(pos, line, FONT_CON);
} }

View file

@ -481,7 +481,7 @@ HUD_DrawInsanityIcon(void)
insanityalpha = bound(0,pl.sh_insaneactive * 0.05f,0.4); insanityalpha = bound(0,pl.sh_insaneactive * 0.05f,0.4);
drawfill( drawfill(
video_mins, video_mins,
video_res, g_vidsize,
[1,0,0], [1,0,0],
insanityalpha, insanityalpha,
DRAWFLAG_ADDITIVE DRAWFLAG_ADDITIVE

View file

@ -167,5 +167,5 @@ VGUI_ChooseTeam(void)
} }
winChooseTeam.Show(); winChooseTeam.Show();
winChooseTeam.SetPos((video_res / 2) - (winChooseTeam.GetSize() / 2)); winChooseTeam.SetPos((g_vidsize / 2) - (winChooseTeam.GetSize() / 2));
} }

View file

@ -76,5 +76,5 @@ VGUI_ShowMOTD(void)
} }
winMotd.Show(); winMotd.Show();
winMotd.SetPos((video_res / 2) - (winMotd.GetSize() / 2)); winMotd.SetPos((g_vidsize / 2) - (winMotd.GetSize() / 2));
} }