mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
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
This commit is contained in:
parent
b0e41bde97
commit
fe88c2d53f
1 changed files with 1 additions and 1 deletions
|
@ -4058,7 +4058,7 @@ void polymost_dorotatesprite (long sx, long sy, long z, short a, short picnum,
|
||||||
memset(m,0,sizeof(m));
|
memset(m,0,sizeof(m));
|
||||||
if ((dastat&10) == 2)
|
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[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[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);
|
m[2][2] = 1.0; m[2][3] = (float)ydimen*(ratioratio >= 1.6?1.2:1);
|
||||||
|
|
Loading…
Reference in a new issue