aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-03-01 22:02:25 +0000
committertjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-03-01 22:02:25 +0000
commit5691dfa32ca097d737193e0b3362ad29bda336c5 (patch)
tree73adc16eb70fad5638c3b5377dcdf9fc8cb3f913
parent9dbe35a4dd8d5fce96c627f000d15395f32bc55a (diff)
downloadioquake3-aero-5691dfa32ca097d737193e0b3362ad29bda336c5.tar.gz
ioquake3-aero-5691dfa32ca097d737193e0b3362ad29bda336c5.zip
* use the Win2k gamma clamp thing on Vista too (raynorpat)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1047 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/win32/win_gamma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/win32/win_gamma.c b/code/win32/win_gamma.c
index b4f3707..85eab3f 100644
--- a/code/win32/win_gamma.c
+++ b/code/win32/win_gamma.c
@@ -148,11 +148,11 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned
table[2][i] = ( ( ( unsigned short ) blue[i] ) << 8 ) | blue[i];
}
- // Win2K puts this odd restriction on gamma ramps...
+ // Win2K and newer put this odd restriction on gamma ramps...
vinfo.dwOSVersionInfoSize = sizeof(vinfo);
GetVersionEx( &vinfo );
- if ( vinfo.dwMajorVersion == 5 && vinfo.dwPlatformId == VER_PLATFORM_WIN32_NT ) {
- Com_DPrintf( "performing W2K gamma clamp.\n" );
+ if ( vinfo.dwMajorVersion >= 5 && vinfo.dwPlatformId == VER_PLATFORM_WIN32_NT ) {
+ Com_DPrintf( "performing gamma clamp.\n" );
for ( j = 0 ; j < 3 ; j++ ) {
for ( i = 0 ; i < 128 ; i++ ) {
if ( table[j][i] > ( (128+i) << 8 ) ) {
@@ -164,7 +164,7 @@ void GLimp_SetGamma( unsigned char red[256], unsigned char green[256], unsigned
}
}
} else {
- Com_DPrintf( "skipping W2K gamma clamp.\n" );
+ Com_DPrintf( "skipping gamma clamp.\n" );
}
// enforce constantly increasing