From fe88c2d53f6996d59b0bb123b0659c1ef8d6c243 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 21 May 2006 01:57:32 +0000 Subject: [PATCH] I just keep fucking with this This seems to be the most accurate, even though I'm using the screen res instead of the viewing area res to calculate the ratio git-svn-id: https://svn.eduke32.com/eduke32@178 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/polymost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/build/src/polymost.c b/polymer/build/src/polymost.c index b819e1f11..0e9983114 100644 --- a/polymer/build/src/polymost.c +++ b/polymer/build/src/polymost.c @@ -4058,7 +4058,7 @@ void polymost_dorotatesprite (long sx, long sy, long z, short a, short picnum, memset(m,0,sizeof(m)); if ((dastat&10) == 2) { - ratioratio = (float)xdimen/ydimen; + ratioratio = (float)xdim/ydim; m[0][0] = (float)ydimen*(ratioratio >= 1.6?1.2:1); m[0][2] = 1.0; m[1][1] = (float)xdimen; m[1][2] = 1.0; m[2][2] = 1.0; m[2][3] = (float)ydimen*(ratioratio >= 1.6?1.2:1);