From 47a8fcb1a2eedeb382895d6d0af22384a26aad35 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 12 Nov 2002 20:38:14 +0000 Subject: [PATCH] don't clamp color values; slow and seems unneeded (be nice if we didn't have to convert it, either, but there's no GL_T2F_C4F_V3F) --- stepmania/src/RageTypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageTypes.h b/stepmania/src/RageTypes.h index 2349fa1b7a..6fc2714be8 100644 --- a/stepmania/src/RageTypes.h +++ b/stepmania/src/RageTypes.h @@ -159,7 +159,7 @@ public: }; /* Convert floating-point 0..1 value to integer 0..255 value. */ -inline unsigned char FTOC(float a) { return (unsigned char)(max(min(a, 1.f), 0.f) * 255.f); } +inline unsigned char FTOC(float a) { return (unsigned char)(a * 255.f); } /* Color type used only in vertex lists. OpenGL expects colors in * r, g, b, a order, independent of endianness, so storing them this