From 7663da80c3256e0800dc803cd63f4171cc4caa31 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 17 Apr 2019 07:17:43 +0700 Subject: [PATCH] ref_soft: Setup viewport --- r_misc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/r_misc.c b/r_misc.c index 7d02bb48..e3c00f72 100644 --- a/r_misc.c +++ b/r_misc.c @@ -340,10 +340,14 @@ void R_SetupFrameQ (void) // r_dowarp = true; // else - vrect.x = 0;//r_newrefdef.x; + /*vrect.x = 0;//r_newrefdef.x; vrect.y = 0;//r_newrefdef.y; vrect.width = gpGlobals->width; - vrect.height = gpGlobals->height; + vrect.height = gpGlobals->height;*/ + vrect.x = RI.viewport[0]; + vrect.y = RI.viewport[1]; + vrect.width = RI.viewport[2]; + vrect.height = RI.viewport[3]; d_viewbuffer = (void *)vid.buffer; r_screenwidth = vid.rowbytes;