mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@7 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f9ee45ff1e
commit
47fc0bd0ad
1 changed files with 4 additions and 3 deletions
|
@ -585,15 +585,16 @@ void resizeglcheck ()
|
|||
glox1 = windowx1; gloy1 = windowy1;
|
||||
glox2 = windowx2; gloy2 = windowy2;
|
||||
|
||||
bglViewport(windowx1,yres-(windowy2+1),windowx2-windowx1+1,windowy2-windowy1+1);
|
||||
bglViewport(windowx1,yres-(windowy2+1),windowx2-windowx1+1,(windowy2-windowy1+1) / 1.2);
|
||||
|
||||
bglMatrixMode(GL_PROJECTION);
|
||||
memset(m,0,sizeof(m));
|
||||
m[0][0] = (float)ydimen; m[0][2] = 1.0;
|
||||
m[0][0] = (float)ydimen / 1.2; 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[2][2] = 1.0; m[2][3] = (float)ydimen / 1.2;
|
||||
m[3][2] =-1.0;
|
||||
bglLoadMatrixf(&m[0][0]);
|
||||
//bglLoadIdentity();
|
||||
|
||||
bglMatrixMode(GL_MODELVIEW);
|
||||
bglLoadIdentity();
|
||||
|
|
Loading…
Reference in a new issue