From ec682e5ce751c3e83df747412ed0b6786d213ab3 Mon Sep 17 00:00:00 2001 From: tma Date: Tue, 11 Dec 2007 00:19:23 +0000 Subject: * Replace "powered by ioq3" text with ui_ioq3 CVAR_ROM * Guess display aspect based on the desktop resolution * Sort detected resolutions by... + closeness to display aspect + ascending width + ascending height * Apply Q3 coding style to resolution detection code git-svn-id: svn://svn.icculus.org/quake3/trunk@1232 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/renderer/tr_init.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'code/renderer/tr_init.c') diff --git a/code/renderer/tr_init.c b/code/renderer/tr_init.c index 75ffd52..4618917 100644 --- a/code/renderer/tr_init.c +++ b/code/renderer/tr_init.c @@ -23,10 +23,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "tr_local.h" -glconfig_t glConfig; -qboolean textureFilterAnisotropic = qfalse; -int maxAnisotropy = 0; - +glconfig_t glConfig; +qboolean textureFilterAnisotropic = qfalse; +int maxAnisotropy = 0; +float displayAspect = 0.0f; + glstate_t glState; static void GfxInfo_f( void ); -- cgit v1.2.3