changeset 1869:65800e7f7146

Date: Fri, 9 Jun 2006 11:35:23 +0300 From: "Janne Junnila" Subject: [SDL] SDL_SetGamma bug You can't set the the gamma 'brighter' than 1.0. There's a patch attached.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Jun 2006 06:50:42 +0000
parents c8f42ed8805e
children 39a4f91b164a
files src/video/SDL_gamma.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_gamma.c	Tue Jun 20 06:39:01 2006 +0000
+++ b/src/video/SDL_gamma.c	Tue Jun 20 06:50:42 2006 +0000
@@ -50,7 +50,7 @@
 		return;
 	} else
 	/* 1.0 gamma is identity */
-	if ( gamma >= 1.0f ) {
+	if ( gamma == 1.0f ) {
 		for ( i=0; i<256; ++i ) {
 			ramp[i] = (i << 8) | i;
 		}