| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/reallyslick/files/ |
Upload File : |
--- src/hyperspace.cpp.orig 2009-05-17 07:41:52.000000000 +0900 +++ src/hyperspace.cpp 2009-05-21 18:05:29.000000000 +0900 @@ -144,6 +144,14 @@ first = 0; } + aspectRatio = float(XStuff->windowWidth) / float(XStuff->windowHeight); + glViewport(0, 0, XStuff->windowWidth, XStuff->windowHeight); + + // setup projection matrix + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + gluPerspective(float(dFov), aspectRatio, 0.001f, 200.0f); + glGetDoublev(GL_PROJECTION_MATRIX, projMat); glMatrixMode(GL_MODELVIEW); // Camera movements