aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-12-11 00:19:23 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-12-11 00:19:23 +0000
commitec682e5ce751c3e83df747412ed0b6786d213ab3 (patch)
tree89e7d270e18fb8c465407c937623177dbb9f9a91 /code/renderer
parentff0cfef33b01b1146306b0f6d81bf3604789c546 (diff)
downloadioquake3-aero-ec682e5ce751c3e83df747412ed0b6786d213ab3.tar.gz
ioquake3-aero-ec682e5ce751c3e83df747412ed0b6786d213ab3.zip
* 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
Diffstat (limited to 'code/renderer')
-rw-r--r--code/renderer/tr_init.c9
-rw-r--r--code/renderer/tr_local.h7
2 files changed, 9 insertions, 7 deletions
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 );
diff --git a/code/renderer/tr_local.h b/code/renderer/tr_local.h
index 7ff50e4..5354bc7 100644
--- a/code/renderer/tr_local.h
+++ b/code/renderer/tr_local.h
@@ -973,9 +973,10 @@ extern glstate_t glState; // outside of TR since it shouldn't be cleared during
// These two variables should live inside glConfig but can't because of compatibility issues to the original ID vms.
// If you release a stand-alone game and your mod uses tr_types.h from this build you can safely move them to
// the glconfig_t struct.
-extern qboolean textureFilterAnisotropic;
-extern int maxAnisotropy;
-
+extern qboolean textureFilterAnisotropic;
+extern int maxAnisotropy;
+extern float displayAspect;
+
//
// cvars