From: Rudolf Polzer Date: Tue, 20 Aug 2013 08:25:00 +0000 (+0200) Subject: menuqc: pass vid width/height to m_draw (consistency with CSQC_UpdateView). X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a4290ccdef7e7aa0f10f0180c96b3b6003a24e2;p=xonotic%2Fdarkplaces.git menuqc: pass vid width/height to m_draw (consistency with CSQC_UpdateView). --- diff --git a/menu.c b/menu.c index d1311ca3..b5270e28 100644 --- a/menu.c +++ b/menu.c @@ -5307,6 +5307,8 @@ static void MP_Draw (void) // FIXME: this really shouldnt error out lest we have a very broken refdef state...? // or does it kill the server too? + PRVM_G_FLOAT(OFS_PARM0) = vid.width; + PRVM_G_FLOAT(OFS_PARM1) = vid.height; prog->ExecuteProgram(prog, PRVM_menufunction(m_draw),"m_draw() required"); // TODO: imo this should be moved into scene, too [1/27/2008 Andreas]