From 1a4290ccdef7e7aa0f10f0180c96b3b6003a24e2 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 20 Aug 2013 10:25:00 +0200 Subject: [PATCH] menuqc: pass vid width/height to m_draw (consistency with CSQC_UpdateView). --- menu.c | 2 ++ 1 file changed, 2 insertions(+) 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] -- 2.39.2