Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Date: Fri, 9 Jun 2006 11:35:23 +0300
Browse files Browse the repository at this point in the history
From: "Janne Junnila"
Subject: [SDL] SDL_SetGamma bug

You can't set the the gamma 'brighter' than 1.0. There's a patch attached.
  • Loading branch information
slouken committed Jun 20, 2006
1 parent f318baf commit 27e5f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_gamma.c
Expand Up @@ -51,7 +51,7 @@ CalculateGammaRamp(float gamma, Uint16 * ramp)
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;
}
Expand Down

0 comments on commit 27e5f37

Please sign in to comment.