From 8238e06d3e6fa7e2dccd04e857a3aba0004aca19 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Fri, 1 Apr 2011 13:05:13 +0000 Subject: [PATCH] remove gamma stuff from d3d getrgbinfo git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3770 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/d3d/vid_d3d.c | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/engine/d3d/vid_d3d.c b/engine/d3d/vid_d3d.c index 13fa026c9..4d4ed7244 100644 --- a/engine/d3d/vid_d3d.c +++ b/engine/d3d/vid_d3d.c @@ -800,7 +800,6 @@ static char *(D3D9_VID_GetRGBInfo) (int prepad, int *truevidwidth, int *truevi { IDirect3DSurface9 *surf; D3DLOCKED_RECT rect; - extern qboolean gammaworks; int i, j, c; qbyte *ret = BZ_Malloc(prepad + vid.pixelwidth*vid.pixelheight*3); qbyte *p; @@ -822,31 +821,15 @@ static char *(D3D9_VID_GetRGBInfo) (int prepad, int *truevidwidth, int *truevi c = prepad+vid.pixelwidth*vid.pixelheight*3; p = (qbyte *)rect.pBits; - if (gammaworks) + for (i=c-(3*vid.pixelwidth); i>=prepad; i-=(3*vid.pixelwidth)) { - extern qbyte gammatable[256]; - for (i=c-(3*vid.pixelwidth); i>=prepad; i-=(3*vid.pixelwidth)) + for (j=0; j=prepad; i-=(3*vid.pixelwidth)) - { - for (j=0; j