From 60a3112e4593ea04ca96d1b9476296ce0fb56ee2 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 14 May 2018 00:07:56 -0500 Subject: [PATCH] Fix console offset while Team Arena voiceMenu is open Fix console text being on top of the Tema Arena voice chat head in screen resolutions higher than 640x480. --- code/cgame/cg_newdraw.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/cgame/cg_newdraw.c b/code/cgame/cg_newdraw.c index 680bd6c1..b21b1ad4 100644 --- a/code/cgame/cg_newdraw.c +++ b/code/cgame/cg_newdraw.c @@ -1802,8 +1802,14 @@ int CG_ClientNumFromName(const char *p) { } void CG_ShowResponseHead(void) { - Menus_OpenByName("voiceMenu"); - trap_Cvar_Set("cl_conXOffset", "72"); + float x, y, w, h; + + x = 72; + y = w = h = 0; + CG_AdjustFrom640( &x, &y, &w, &h ); + + Menus_OpenByName("voiceMenu"); + trap_Cvar_Set("cl_conXOffset", va("%d", (int)x)); cg.voiceTime = cg.time; }