]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
oops, wrong type... "int" has no ANSI C defined wraparound, "unsigned int" does
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Jan 2008 12:20:10 +0000 (12:20 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Jan 2008 12:20:10 +0000 (12:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8042 d7cf8633-e32d-0410-b094-e92efae38249

vid.h
vid_shared.c

diff --git a/vid.h b/vid.h
index 9323dc084f11d2015c9924cbb3b25f43b0e2461d..9ba33da5c2fa8bc0e762aecf4a21b9cb3cd3b524 100644 (file)
--- a/vid.h
+++ b/vid.h
@@ -148,7 +148,7 @@ void VID_Restart_f(void);
 
 void VID_Start(void);
 
-extern int vid_gammaramps_serial; // so other subsystems can poll if gamma parameters have changed; this starts with 0 and gets increased by 1 each time the gamma parameters get changed and VID_BuildGammaTables should be called again
+extern unsigned int vid_gammaramps_serial; // so other subsystems can poll if gamma parameters have changed; this starts with 0 and gets increased by 1 each time the gamma parameters get changed and VID_BuildGammaTables should be called again
 void VID_BuildGammaTables(unsigned short *ramps, int rampsize); // builds the current gamma tables into an array (needs 3*rampsize items)
 #endif
 
index 594b0dca46f0856e7c36fbae2b32b052feb1180a..f67bb2d3c24424fa96b688d67868fa2d839fbbb0 100644 (file)
@@ -825,7 +825,7 @@ static int gamma_forcenextframe = false;
 static float cachegamma, cachebrightness, cachecontrast, cacheblack[3], cachegrey[3], cachewhite[3], cachecontrastboost;
 static int cachecolorenable, cachehwgamma;
 
-int vid_gammaramps_serial = 0; // so other subsystems can poll if gamma parameters have changed
+unsigned int vid_gammaramps_serial = 0; // so other subsystems can poll if gamma parameters have changed
 void VID_BuildGammaTables(unsigned short *ramps, int rampsize)
 {
        if (cachecolorenable)