mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 06:41:59 +00:00
This seems more consistent.
git-svn-id: https://svn.eduke32.com/eduke32@177 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
119f878dc6
commit
b0e41bde97
1 changed files with 5 additions and 15 deletions
|
@ -4058,21 +4058,11 @@ void polymost_dorotatesprite (long sx, long sy, long z, short a, short picnum,
|
|||
memset(m,0,sizeof(m));
|
||||
if ((dastat&10) == 2)
|
||||
{
|
||||
if(glhudcorrect)
|
||||
{
|
||||
ratioratio = (float)xdimen/ydimen;
|
||||
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);
|
||||
m[3][2] =-1.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
m[0][0] = (float)ydimen; 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;
|
||||
m[3][2] =-1.0;
|
||||
}
|
||||
ratioratio = (float)xdimen/ydimen;
|
||||
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);
|
||||
m[3][2] =-1.0;
|
||||
}
|
||||
else { m[0][0] = m[2][3] = 1.0; m[1][1] = ((float)xdim)/((float)ydim); m[2][2] = 1.0001; m[3][2] = 1-m[2][2]; }
|
||||
bglLoadMatrixf(&m[0][0]);
|
||||
|
|
Loading…
Reference in a new issue