From d6e0009ec02061acfe5c7d1829847601b6f70608 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 13 Aug 2012 18:26:16 +0000 Subject: [PATCH] engine: in setaspect_new, determine the aspect with {x,y}dimen instead of {x,y}dim. That is, use the view boundries instead of the whole screen. git-svn-id: https://svn.eduke32.com/eduke32@2894 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 5c49b9add..f2a691dc5 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -13441,13 +13441,13 @@ void setaspect_new() x=r_screenxy/100; y=r_screenxy%100; if (y==0 || x==0) { x=4; y=3; } - pixratio = divscale16(xdim*y, ydim*x); + pixratio = divscale16(xdimen*y, ydimen*x); yx = divscale16(yx, pixratio); } else { - x = xdim; - y = ydim; + x = xdimen; + y = ydimen; } vr = divscale16(x*3, y*4);