[chocolate-doom] 41/83: Fix gamma correction
Jonathan Dowland
jmtd at moszumanska.debian.org
Mon Jan 30 15:06:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
jmtd pushed a commit to annotated tag chocolate-doom-0.0.1
in repository chocolate-doom.
commit fb5c593052d24a3583bd71d517972ba0f59b14ac
Author: Simon Howard <fraggle at gmail.com>
Date: Sun Aug 7 03:09:33 2005 +0000
Fix gamma correction
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 47
---
src/i_video.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/i_video.c b/src/i_video.c
index 3dd28cd..b41e5e2 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_video.c 46 2005-08-07 02:59:23Z fraggle $
+// $Id: i_video.c 47 2005-08-07 03:09:33Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.16 2005/08/07 03:09:33 fraggle
+// Fix gamma correction
+//
// Revision 1.15 2005/08/07 02:59:23 fraggle
// Clear disk image when loading at startup
//
@@ -78,7 +81,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_video.c 46 2005-08-07 02:59:23Z fraggle $";
+rcsid[] = "$Id: i_video.c 47 2005-08-07 03:09:33Z fraggle $";
#include <ctype.h>
#include <SDL.h>
@@ -635,9 +638,9 @@ void I_SetPalette (byte *doompalette)
for (i=0; i<256; ++i)
{
- palette[i].r = *doompalette++;
- palette[i].g = *doompalette++;
- palette[i].b = *doompalette++;
+ palette[i].r = gammatable[usegamma][*doompalette++];
+ palette[i].g = gammatable[usegamma][*doompalette++];
+ palette[i].b = gammatable[usegamma][*doompalette++];
}
palette_to_set = 1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git
More information about the Pkg-games-commits
mailing list