From: <wrt...@us...> - 2007-04-18 19:30:32
|
Revision: 7199 http://armagetronad.svn.sourceforge.net/armagetronad/?rev=7199&view=rev Author: wrtlprnft Date: 2007-04-18 12:30:26 -0700 (Wed, 18 Apr 2007) Log Message: ----------- Don't stretch the floor image for screens with an aspect ratio != 4./3. Modified Paths: -------------- armagetronad/branches/0.2.8/armagetronad/src/tron/gFloor.cpp Modified: armagetronad/branches/0.2.8/armagetronad/src/tron/gFloor.cpp =================================================================== --- armagetronad/branches/0.2.8/armagetronad/src/tron/gFloor.cpp 2007-04-16 19:05:27 UTC (rev 7198) +++ armagetronad/branches/0.2.8/armagetronad/src/tron/gFloor.cpp 2007-04-18 19:30:26 UTC (rev 7199) @@ -32,6 +32,7 @@ #include "gLogo.h" #include "eFloor.h" #include "tConfiguration.h" +#include "rScreen.h" // grid size @@ -175,7 +176,9 @@ TexMatrix(); glLoadMatrixf(&tm[0][0]); + glScalef((REAL)sr_screenWidth/sr_screenHeight/4. * 3., 1., 1.); + BeginQuads(); glTexCoord2d(x,y); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |