]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
menuqc: pass vid width/height to m_draw (consistency with CSQC_UpdateView).
authorRudolf Polzer <divverent@xonotic.org>
Tue, 20 Aug 2013 08:25:00 +0000 (10:25 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 20 Aug 2013 08:25:00 +0000 (10:25 +0200)
menu.c

diff --git a/menu.c b/menu.c
index d1311ca35d85823bd840614e3b2b6fd02e1ec136..b5270e285096a52f2fa33db0ee9d6e7ee2258daf 100644 (file)
--- 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]