From ba70042981bc03f3c9ae4e8f1255a93a27c9b746 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 18 Apr 2005 17:31:53 +0000 Subject: [PATCH] Trying to fix some gamma ramp sizes. :/ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@965 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidlinuxglx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_vidlinuxglx.c b/engine/gl/gl_vidlinuxglx.c index 3af8251b1..7e8a76f84 100644 --- a/engine/gl/gl_vidlinuxglx.c +++ b/engine/gl/gl_vidlinuxglx.c @@ -564,7 +564,7 @@ void GLVID_ShiftPalette (unsigned char *palette) // VID_SetPalette (palette); - if (ActiveApp && vid_hardwaregamma.value) //this is needed because ATI drivers don't work properly (or when task-switched out). + if (origionalapplied && ActiveApp && vid_hardwaregamma.value) //this is needed because ATI drivers don't work properly (or when task-switched out). { if (gammaworks) { //we have hardware gamma applied - if we're doing a BF, we don't want to reset to the default gamma (yuck) @@ -826,7 +826,7 @@ qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette) if (rampsize != 256) { origionalapplied = false; - Con_Printf("Gamma ramps are not of 256 componants.\n"); + Con_Printf("Gamma ramps are not of 256 componants (but %i).\n", rampsize); } else origionalapplied = XF86VidModeGetGammaRamp(vid_dpy, scrnum, 256, origionalramps[0], origionalramps[1], origionalramps[2]);